コード例 #1
0
        private void button_add_Click(object sender, RoutedEventArgs e)
        {
            AddManualAutoAddWindow dlg = new AddManualAutoAddWindow();

            dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
            dlg.ShowDialog();
        }
コード例 #2
0
 public static bool?OpenChangeManualAutoAddDialog(ManualAutoAddData Data)
 {
     if (AddManualAutoAddWindow.ChangeDataLastUsedWindow(Data) != null)
     {
         return(true);
     }
     return(OpenManualAutoAddDialog(Data, AutoAddMode.Change));
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
 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();
     }
 }
コード例 #5
0
 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();
     }
 }
コード例 #6
0
ファイル: MenuUtil.cs プロジェクト: nekopanda/EDCB
 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);
 }
コード例 #7
0
 protected override void PostProcSaveOrder(Dictionary <ulong, ulong> changeIDTable)
 {
     AddManualAutoAddWindow.UpdatesAutoAddViewOrderChanged(changeIDTable);
 }
コード例 #8
0
 private void button_add_Click(object sender, RoutedEventArgs e)
 {
     AddManualAutoAddWindow dlg = new AddManualAutoAddWindow();
     dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
     dlg.ShowDialog();
 }