Ejemplo n.º 1
0
 public void NormalExecute()
 {
     if (MultipleInstanceAllow == false && w != null)
     {
         MessageBox.Show("Multiple instance not allowed.");
         w.Activate();
         return;
     }
     w = new wMain(AppObjects);
     w.Closed += new EventHandler(w_Closed);
     w.Owner = AppObjects.wMain;
     //AppObjects.wMain.IsEnabled = false;
     w.Show();
     //w.Activate();
 }
Ejemplo n.º 2
0
 private void w_Closed(object sender, EventArgs e)
 {
     w = null;
 }