public Result AddEditParameters(ExternalCommandData commandData, ref string message, ElementSet elements) { messageConst = message; myWindow1 = new MainWindow(commandData, this); Window1617_AddEditParameters myWindowWindow1617 = new Window1617_AddEditParameters(commandData); try { myWindowWindow1617.myWindow1 = myWindow1; myWindowWindow1617.Topmost = true; //myWindowWindow1617.Owner = this; myWindowWindow1617.Show(); } #region catch and finally catch (Exception ex) { System.Windows.MessageBox.Show(ex.Message); } finally { } #endregion return(Result.Succeeded); }
private void my1617AddingEditingParameters_Click(object sender, RoutedEventArgs e) { Window1617_AddEditParameters myWindowWindow1617 = new Window1617_AddEditParameters(commandData); try { myWindowWindow1617.myWindow1 = this; myWindowWindow1617.Topmost = true; myWindowWindow1617.Owner = this; myWindowWindow1617.Show(); } #region catch and finally catch (Exception ex) { _952_PRLoogleClassLibrary.DatabaseMethods.writeDebug("my1617AddingEditingParameters_Click" + Environment.NewLine + ex.Message + Environment.NewLine + ex.InnerException, true); } finally { } #endregion }