Пример #1
0
 private void refreshFormVars(object sender, EventArgs e)
 {
     if ((Form)sender == myTicketListForm)
     {
         myTicketListForm = null;
     }
     else if ((Form)sender == myExpiredFormularListForm)
     {
         myExpiredFormularListForm = null;
     }
 }
Пример #2
0
 private void buttonOpenFormularList_Click(object sender, EventArgs e)
 {
     if (myExpiredFormularListForm == null)
     {
         myExpiredFormularListForm = new ExpiredFormularListForm(linkedModel);
         myExpiredFormularListForm.Show();
         myExpiredFormularListForm.FormClosing += refreshFormVars;
     }
     else
     {
         myExpiredFormularListForm.BringToFront();
     }
 }