private void button_add_Click(object sender, RoutedEventArgs e) { AddManualAutoAddWindow dlg = new AddManualAutoAddWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.ShowDialog(); }
public static bool?OpenChangeManualAutoAddDialog(ManualAutoAddData Data) { if (AddManualAutoAddWindow.ChangeDataLastUsedWindow(Data) != null) { return(true); } return(OpenManualAutoAddDialog(Data, AutoAddMode.Change)); }
private void listView_key_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (listView_key.SelectedItem != null) { ManualAutoAddDataItem info = listView_key.SelectedItem as ManualAutoAddDataItem; AddManualAutoAddWindow dlg = new AddManualAutoAddWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetChangeModeData(info.ManualAutoAddInfo); dlg.ShowDialog(); } }
private void button_change_Click(object sender, RoutedEventArgs e) { if (listView_key.SelectedItem != null) { ManualAutoAddDataItem info = listView_key.SelectedItem as ManualAutoAddDataItem; AddManualAutoAddWindow dlg = new AddManualAutoAddWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetChangeMode(true); dlg.SetDefaultSetting(info.ManualAutoAddInfo); dlg.ShowDialog(); } }
public static bool?OpenManualAutoAddDialog(ManualAutoAddData Data, Control Owner) { try { var dlg = new AddManualAutoAddWindow(); dlg.Owner = CommonUtil.GetTopWindow(Owner); if (Data != null) { dlg.SetChangeMode(true); dlg.SetDefaultSetting(Data); } return(dlg.ShowDialog()); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } return(null); }
protected override void PostProcSaveOrder(Dictionary <ulong, ulong> changeIDTable) { AddManualAutoAddWindow.UpdatesAutoAddViewOrderChanged(changeIDTable); }