Exemple #1
0
 public AddData()
 {
     InitializeComponent();
     ucAddCar  = new UcAddCar();
     ucAddCust = new UcAddCust();
     ucAddSell = new UcAddSell();
     centerLayout.Controls.Add(ucAddCar);
     centerLayout.Dock = DockStyle.Fill;
 }
Exemple #2
0
 public AddData(UnionController uHandler)
 {
     InitializeComponent();
     ucAddCar  = new UcAddCar(uHandler, this);
     ucAddCust = new UcAddCust(uHandler);
     ucAddSell = new UcAddSell(uHandler);
     //centerLayout.Controls.Add(ucAddCar);
     //centerLayout.Dock = DockStyle.Fill;
     ucAddCar.addCarConfirmEvent += addCarConfirmHandler;
 }
 public AddData(UnionController uHandler) //오버로딩
 {
     InitializeComponent();
     this.uHandler = uHandler;
     //객체 생성
     ucAddCar  = new UcAddCar(uHandler, this);
     ucAddCust = new UcAddCust(uHandler);
     ucAddSell = new UcAddSell(uHandler);
     centerLayout.Controls.Add(ucAddCar);
     centerLayout.Dock            = DockStyle.Fill;       //화면을 꽉 채워라
     ucAddCar.addCarConfirmEvevt += addCarConfirmHandler; //내가 만든 이벤트를 등록하는 것
 }