Example #1
0
        private void changeProjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSelectProject frmPopup = new frmSelectProject();

            frmPopup.ShowDialog();
            if (frmPopup.projectCode != Guid.Empty)
            {
                projectCode = frmPopup.projectCode;
                bindInfo();
            }
        }
Example #2
0
 private void frmMain_Load(object sender, EventArgs e)
 {
     if (projectCode == Guid.Empty)
     {
         frmSelectProject frmPopup = new frmSelectProject();
         frmPopup.ShowDialog();
         projectCode = frmPopup.projectCode;
         if (projectCode == Guid.Empty)
         {
             Application.Exit();
         }
         else
         {
             bindInfo();
         }
     }
 }