예제 #1
0
 void BtnItemDataClick(object sender, EventArgs e)
 {
     btnItemData.Enabled  = false;
     itemDataForm         = new ItemDataForm();
     itemDataForm.Closed += delegate {
         btnItemData.Enabled = true;
         itemDataForm        = null;
     };
     if (tabControl.SelectedTab != null)
     {
         itemDataForm.Update(((Page)tabControl.SelectedTab).selected);
     }
     itemDataForm.Show(this);
 }
예제 #2
0
 void BtnItemDataClick(object sender, EventArgs e)
 {
     btnItemData.Enabled = false;
     itemDataForm = new ItemDataForm();
     itemDataForm.Closed += delegate {
         btnItemData.Enabled = true;
         itemDataForm = null;
     };
     if (tabControl.SelectedTab != null)
         itemDataForm.Update(((Page)tabControl.SelectedTab).selected);
     itemDataForm.Show(this);
 }