public void NormalExecute() { if (MultipleInstanceAllow == false && w != null) { MessageBox.Show("Multiple instance not allowed."); return; } w = new wMain(AppObjects); w.Owner = AppObjects.wMain; w.Closed += new EventHandler(w_Closed); // w.Topmost = true; w.Show(); // w.Activate(); //var test=AppObjects.AppGrid.FindName("dkp"); //MessageBox.Show(test.ToString()); }
private void w_Closed(object sender, EventArgs e) { w = null; }