2009/2009년 계획2009. 8. 10. 12:31
[9월1일~9월31일]
 ※ 하나 프로젝트 완성
    환경 : 옴니아, .Net Compact framwork3.5, 
            Visual Stdio 2008, Oracle 11g
            Project Name : Firend's Mangement 1.0v
    기능 : [Wi-Fi를 통한 메신저 + Wi-Fi를 통한 P2P, 전화,
             문자, 일정 공지, 가계부(추후 개인 가계부예정)
]
 1. 설계 (스토리 보드)       
     - 일정 : 09/03 ~ 09/05
  
  2. 코드 구조 설계 및 디자인 패턴 구조 설계
     - 일정 : 09/06 ~ 09/10
  
 첫째날(09/01:화)
 휴식 - 몽산포 1일차

 둘째날(09/02:수)
 휴식 - 몽산포 2일차

 셋째날(09/03:목)
 

 네째날(09/04:금)
 

 다섯째날(09/05:토)
 

9월달 한달 정하고 하자 ㅡ0ㅡ 다시 계획

Posted by penguindori
2009/2009년 계획2009. 7. 15. 12:12
※ 일본행이 9월로 미루어 질거 같다.. ㅡ,.ㅡ
   금요일,토요일,일요일,월요일(월차 가능하다면)
   이렇게 계획을 ^^;;
   [09월 11~ 09월13일]

※8월1일~8월5일 휴가 계획이다.
  프로젝트를 하나 완성하려고 한다.
  환경 : 옴니아, .Net Compact framwork3.5, 
           Visual Stdio 2008, Oracle 11g
  Project Name : Firend's Mangement 1.0v
  [Wi-Fi를 통한 메신저 + Wi-Fi를 통한 P2P, 전화, 문자, 
   일정 공지, 가계부(추후 개인 가계부예정)]
  1. 설계 (스토리 보드)       
     - 일정 : 07/15 ~ 07/19
 
  2. 코드 구조 설계 및 디자인 패턴 구조 설계
     - 일정 : 07/19 ~ 07/31
 
 첫째날(8/1:토)
 실패 ;;

 둘째날(8/2:일)
1. 도서관 10:00 ~ 16:00 (total 6시간)
   - 2시간 30분 Head First 정독
   - 1시간       개인 프로젝트 상세 분석
   - 3시간       개발 환경 설정 및 로그인 및 메인 폼 구현
2.

 셋째날(8/3:월)
 실패

 네째날(8/4:화)
 실패

 다섯째날(8/5:수)
 실패 ;;

9월달 한달 정하고 하자 ㅡ0ㅡ 다시 계획

Posted by penguindori
1. 분류
자산 : 현재총 소유 재산관련
부채 : 기타잡비, 소비, 공과비, 교통비, 감가상각비
자본 : 저축관련, 보험관련

2. 대차대조표
3. 손익계산서

------------------
세우 DATA - 7월7일

부채 : 스카이라이프 17만원, 소정이 계 23만원, 통신비(8만원, 소정이갚아야함)
         48만원
Posted by penguindori
2009/2009년 계획2009. 5. 5. 16:50
1. PPT 자료 준비
2. GDI+ 정리
3. GDI+ 책보고 조금 공부하기.
------------- 에혀 좀 푹 쉬고 싶은데.
Posted by penguindori
2009/2009년 세우 일기2009. 3. 19. 17:20
--;
IT 시작 2006년8월달... 그후 2007년 4월달 ~9월달까지의 공백..
그후 2007년10월달부터 2009년 3월19일인 지금... 나는 새로운 출발을 하려고 한다.

2006년08월 ~ 2007년03월달 (시스템엔지니어 : 골든넷 소속) 8개월
2007년10월 ~ 2008년11월달 (프로그래머 : 유비샘 소속) 13개월  - C# 4개월 , Java(jsp/Servlet) 9개월
2008년12월 ~ 2009년03월달 (프로그래머 : 아이텍 소속)  4개월   - Java(jsp/Servlet) 4개월

Total : 25개월이다. 2년1개월... 많은 시간동안 열심히 일했던거 같다.

중간에 편의점에서 일을 하면서 일본어 학원도 다녔었고... 나름 노력은 했던것일까?..

신 전자여권(유비샘) -> Hynix 자동화팀(유비샘->아이텍) -> ??

자 인제는 솔루션 업체이다. 모바일... 우선 3월21일부터 출근이다. C#, C++ 열심히 한번 해보자.

오늘은 19일 D-Day2 남았다.

내나이 28살(만26살 생일 안지남 ^^;)

많이 힘겹고 앞으로도 그럴 것이지만.. 최선을 다하는 프로그래머가 되자.
Posted by penguindori
2009/Study 모임 B조2009. 2. 24. 14:03
#region ExecuteScalar

  /// <summary>
  /// Execute a single command against a MySQL database.
  /// </summary>
  /// <param name="connectionString">Settings to use for the update</param>
  /// <param name="commandText">Command text to use for the update</param>
  /// <returns>The first column of the first row in the result set, or a null reference if the result set is empty.</returns>
  public static object ExecuteScalar(string connectionString, string commandText)
  {
   //pass through the call providing null for the set of MySqlParameters
   return ExecuteScalar(connectionString, commandText, (MySqlParameter[])null);
  }

  /// <summary>
  /// Execute a single command against a MySQL database.
  /// </summary>
  /// <param name="connectionString">Settings to use for the command</param>
  /// <param name="commandText">Command text to use for the command</param>
  /// <param name="commandParameters">Parameters to use for the command</param>
  /// <returns>The first column of the first row in the result set, or a null reference if the result set is empty.</returns>
  public static object ExecuteScalar(string connectionString, string commandText, params MySqlParameter[] commandParameters)
  {
   //create & open a SqlConnection, and dispose of it after we are done.
   using (MySqlConnection cn = new MySqlConnection(connectionString))
   {
    cn.Open();

    //call the overload that takes a connection in place of the connection string
    return ExecuteScalar(cn, commandText, commandParameters);
   }
  }

  /// <summary>
  /// Execute a single command against a MySQL database.
  /// </summary>
  /// <param name="connection"><see cref="MySqlConnection"/> object to use</param>
  /// <param name="commandText">Command text to use for the command</param>
  /// <returns>The first column of the first row in the result set, or a null reference if the result set is empty.</returns>
  public static object ExecuteScalar(MySqlConnection connection, string commandText)
  {
   //pass through the call providing null for the set of MySqlParameters
   return ExecuteScalar(connection, commandText, (MySqlParameter[])null);
  }

  /// <summary>
  /// Execute a single command against a MySQL database.
  /// </summary>
  /// <param name="connection"><see cref="MySqlConnection"/> object to use</param>
  /// <param name="commandText">Command text to use for the command</param>
  /// <param name="commandParameters">Parameters to use for the command</param>
  /// <returns>The first column of the first row in the result set, or a null reference if the result set is empty.</returns>
  public static object ExecuteScalar(MySqlConnection connection, string commandText, params MySqlParameter[] commandParameters)
  {
   //create a command and prepare it for execution
   MySqlCommand cmd = new MySqlCommand();
   cmd.Connection = connection;
   cmd.CommandText = commandText;
   cmd.CommandType = CommandType.Text;
   
   if (commandParameters != null)
    foreach (MySqlParameter p in commandParameters)
     cmd.Parameters.Add( p );
   
   //execute the command & return the results
   object retval = cmd.ExecuteScalar();
   
   // detach the SqlParameters from the command object, so they can be used again.
   cmd.Parameters.Clear();
   return retval;
   
  }

  #endregion
 }
}


http://www.koders.com/csharp/fid01EA450A209966FCB52CA84DABB208DEF807D142.aspx
Posted by penguindori
2009/Study 모임 B조2009. 2. 21. 21:02
예제 1)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InheritanceMethodExam
{
    class BTeam
    {
        protected string TeamName;
        protected int Age;
        public BTeam(string TeamName, int Age) //생성자
        {
            this.TeamName = TeamName;
            this.Age = Age;
        }

        public virtual void BteamInfo() //virtual 은 상속 받는 class에서 변경 하겠다 선언
        {
            Console.WriteLine(TeamName);
            Console.WriteLine(Age);
        }
    }
    class BTeamInfo : BTeam
    {
        protected string address;
        public BTeamInfo(string TeamName, int Age, string address)
            : base(TeamName, Age) // 부모의 생성자를 호출하여 초기화
        {
            this.address = address;
        }
        public override void BteamInfo()
        {
            base.BteamInfo();
            Console.WriteLine(address);
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            BTeamInfo bt = new BTeamInfo("박세우",28,"경기 안산");
            bt.BteamInfo();
        }
    }
}

예제2) 부모 class는 자식 class를 모두 받을 수 있다.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InheritanceMethod2
{
    class A { }
    class B : A { }
    class C : A { }
    class D : A { }
   
    class Program
    {
        static void Main(string[] args)
        {
            A[] As = new A[10];  //부모 class A에 자식 클레스 대입이 가능 합니다.
            As[0] = new B();
            As[1] = new C();
            As[2] = new D();
        }
    }
}


Posted by penguindori
2009/Study 모임 B조2009. 2. 21. 15:04
abstract(추상화) 
:    예를 들어 나는 말을 한다. 하지만 말은 하지만 어떤 말을 할 지는 알 수 없다.
     이런 명확하지 않지만 반드시 하는 것을 정의 할때 추상화 class를 사용 합니다.
    (개인적으로 생각 하는 개념 )                                     

   
[형식]
 지정자 abstract  class 이름 :  기반 abstract
{
   // 멤버 목록
}



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AbstractExam
{

    public class Ok
    {
}
    public abstract class A : Ok
    {
        public abstract string Name { get; set; }
        public abstract void Display();
        public abstract void Move();
    }

    public class B : A
    { 
       public override string Name
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }
        public override void Display()
        {
            Console.WriteLine("화면에 보여준다.");
        }
        public override void Move()
        {
            Console.WriteLine("이동");
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            B ok = new B();

            ok.Display();
            ok.Move();
        }
    }
}


Posted by penguindori
2009/Study 모임 B조2009. 2. 17. 11:22
inheritance(상속)
: 특정 class의 모든 멤버를 물려 받는 것을 말합니다.
  (메소드, 필드, 해당 class에 선언된 모든 부분)

[형식]
protected class 기반class
{
  // 멤버 목록
}

지정자 class 이름 :
기반 class
{
    //멤버 목록
}

[알아두어야 할 사항]
public, protected .. 의 지정자 class로 설정 해야 해당 class의 멤버들을 사용 할 수 있습니다.

sealed 의 지정자는 상속 할 수 없습니다.

상속 class 사용 예제 (winform)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace InheritanceExam
{
    class initForm : Form
    {
        public initForm()
        {
            this.Location = new System.Drawing.Point(0,0);
            this.StartPosition = FormStartPosition.CenterScreen;
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState = FormWindowState.Normal;
            this.Dock = DockStyle.None;
        }
    }

   
    class Program : initForm
    {
        static void Main(string[] args)
        {
            Application.Run(new Program());
        }
    }
}





Posted by penguindori
2009/Study 모임 B조2009. 2. 16. 00:18
class :  객체 지향의 가장 핵심이 되는 주체
(함수, 변수, 상수등 모든 것이 클래스 소속 되어야 함)

[형식]
 지정자 class 이름 : 기반 class
{
   // 멤버 목록
}
지정자 :                                              
 1. public class A {}
     외부에서 마음대로 Access 할 수 있습니다.
 2. private class A {}
     내부에서만 Access 할 수 있습니다.
 3. protected class A {}
     내부 혹은 상속 받을 때만 Access 할 수 있 
     습니다.
 4. sealed class A {}
    상속 할 수 없는 class 입니다.
 5. partial class A {}
     partial 을 사용 하고 class 이름이 같을 경우
     동일한 class로 인식 합니다.

기본 Class 사용 방법

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Study1
{

    class BTeam
    {
        Dictionary<int, string> userName;
        public Dictionary<int, string> inUser (int num, string uName)
        {
                #region Exception 처리
                if(num < 0 || num > 20)
                    Console.WriteLine("0~20 사이의 값을 입력해 주세요.");
                #endregion

                userName = new Dictionary<int, string>();
                userName.Add(num,uName);

                return userName;
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            BTeam bjo = new BTeam();
            Dictionary<int, string> a = bjo.inUser(1, "AAA");

            foreach (KeyValuePair<int,string> KeyPrint in a)
            {
                Console.WriteLine(KeyPrint.Value);
            }

        }
    }
}









Posted by penguindori