private void mnuImportNotes_Click(object sender, RoutedEventArgs e) { try { var d = new WndImportNotes { Owner = this }; var showDialog = d.ShowDialog(); if (showDialog == null || !showDialog.Value) return; if (PNStatic.FormCP == null) return; PNStatic.FormCP.Close(); mnuCP.PerformClick(); } catch (Exception ex) { PNStatic.LogException(ex); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DlgImportNotes = ((PNotes.NET.WndImportNotes)(target)); #line 19 "..\..\WndImportNotes.xaml" this.DlgImportNotes.Loaded += new System.Windows.RoutedEventHandler(this.DlgImportNotes_Loaded); #line default #line hidden return; case 2: this.lblDataDir = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.txtDataDir = ((System.Windows.Controls.TextBox)(target)); #line 43 "..\..\WndImportNotes.xaml" this.txtDataDir.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Text_TextChanged); #line default #line hidden return; case 4: this.cmdDataDir = ((System.Windows.Controls.Button)(target)); #line 44 "..\..\WndImportNotes.xaml" this.cmdDataDir.Click += new System.Windows.RoutedEventHandler(this.cmdDataDir_Click); #line default #line hidden return; case 5: this.chkUseDataDir = ((System.Windows.Controls.CheckBox)(target)); #line 45 "..\..\WndImportNotes.xaml" this.chkUseDataDir.Checked += new System.Windows.RoutedEventHandler(this.chkUseDataDir_Checked); #line default #line hidden #line 45 "..\..\WndImportNotes.xaml" this.chkUseDataDir.Unchecked += new System.Windows.RoutedEventHandler(this.chkUseDataDir_Checked); #line default #line hidden return; case 6: this.lblDBDir = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.txtDBDir = ((System.Windows.Controls.TextBox)(target)); #line 47 "..\..\WndImportNotes.xaml" this.txtDBDir.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Text_TextChanged); #line default #line hidden return; case 8: this.cmdDBDir = ((System.Windows.Controls.Button)(target)); #line 48 "..\..\WndImportNotes.xaml" this.cmdDBDir.Click += new System.Windows.RoutedEventHandler(this.cmdDBDir_Click); #line default #line hidden return; case 9: this.chkKeepInvisible = ((System.Windows.Controls.CheckBox)(target)); return; case 10: this.chkImportGroups = ((System.Windows.Controls.CheckBox)(target)); #line 50 "..\..\WndImportNotes.xaml" this.chkImportGroups.Checked += new System.Windows.RoutedEventHandler(this.chkUseDataDir_Checked); #line default #line hidden #line 50 "..\..\WndImportNotes.xaml" this.chkImportGroups.Unchecked += new System.Windows.RoutedEventHandler(this.chkUseDataDir_Checked); #line default #line hidden return; case 11: this.lblIniLocations = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.txtIniPath = ((System.Windows.Controls.TextBox)(target)); #line 52 "..\..\WndImportNotes.xaml" this.txtIniPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Text_TextChanged); #line default #line hidden return; case 13: this.cmdIniPath = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\WndImportNotes.xaml" this.cmdIniPath.Click += new System.Windows.RoutedEventHandler(this.cmdIniPath_Click); #line default #line hidden return; case 14: this.chkNoRecycle = ((System.Windows.Controls.CheckBox)(target)); return; case 15: this.lblWarning = ((System.Windows.Controls.TextBlock)(target)); return; case 16: this.elpProgress = ((System.Windows.Shapes.Ellipse)(target)); return; case 17: this.lblProgress = ((System.Windows.Controls.TextBlock)(target)); return; case 18: this.cmdOK = ((System.Windows.Controls.Button)(target)); #line 65 "..\..\WndImportNotes.xaml" this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click); #line default #line hidden return; case 19: this.cmdCancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }