예제 #1
0
파일: admenu.cs 프로젝트: hartantowu/UTS
 private void penjualan_btn_Click(object sender, EventArgs e)
 {
     if (penjualanPage == null)
     {
         penjualanPage             = new adpenjualan();        //Create form if not created
         penjualanPage.FormClosed += penjualanPage_FormClosed; //Add eventhandler to cleanup after form closes
         InitializeComponent();
         penjualanPage.Show(this);                             //Show Form assigning this form as the forms owner
     }
 }
예제 #2
0
파일: admenu.cs 프로젝트: hartantowu/UTS
 void penjualanPage_FormClosed(object sender, FormClosedEventArgs e)
 {
     penjualanPage = null;
     Show();
 }