private void mnuImpLotus_Click(object sender, RoutedEventArgs e) { try { var dlgImport = new WndImportMailContacts(ImportContacts.Lotus, _MailContacts, mnuImpLotus.Header.ToString()) { Owner = this }; dlgImport.ContactsImported += dlgImport_ContactsImported; var showDialog = dlgImport.ShowDialog(); if (showDialog == null || !showDialog.Value) dlgImport.ContactsImported -= dlgImport_ContactsImported; } catch (Exception ex) { PNStatic.LogException(ex); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DlgImportMailContacts = ((PNotes.NET.WndImportMailContacts)(target)); #line 19 "..\..\WndImportMailContacts.xaml" this.DlgImportMailContacts.Loaded += new System.Windows.RoutedEventHandler(this.DlgImportMailContacts_Loaded); #line default #line hidden return; case 2: this.stkImport = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.pnsImportContacts = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.grdMailContacts = ((System.Windows.Controls.ListView)(target)); return; case 5: this.chkAll = ((System.Windows.Controls.CheckBox)(target)); #line 27 "..\..\WndImportMailContacts.xaml" this.chkAll.Checked += new System.Windows.RoutedEventHandler(this.HeaderChecked); #line default #line hidden #line 27 "..\..\WndImportMailContacts.xaml" this.chkAll.Unchecked += new System.Windows.RoutedEventHandler(this.HeaderChecked); #line default #line hidden return; case 7: this.chkNoDuplicates = ((System.Windows.Controls.CheckBox)(target)); return; case 8: this.cmdLoadImport = ((System.Windows.Controls.Button)(target)); #line 47 "..\..\WndImportMailContacts.xaml" this.cmdLoadImport.Click += new System.Windows.RoutedEventHandler(this.cmdLoadImport_Click); #line default #line hidden return; case 9: this.cmdOK = ((System.Windows.Controls.Button)(target)); #line 48 "..\..\WndImportMailContacts.xaml" this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click); #line default #line hidden return; case 10: this.cmdCancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DlgImportMailContacts = ((PNotes.NET.WndImportMailContacts)(target)); #line 19 "..\..\WndImportMailContacts.xaml" this.DlgImportMailContacts.Loaded += new System.Windows.RoutedEventHandler(this.DlgImportMailContacts_Loaded); #line default #line hidden return; case 2: this.stkImport = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.pnsImportContacts = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.grdMailContacts = ((System.Windows.Controls.ListView)(target)); return; case 5: this.chkAll = ((System.Windows.Controls.CheckBox)(target)); #line 27 "..\..\WndImportMailContacts.xaml" this.chkAll.Checked += new System.Windows.RoutedEventHandler(this.HeaderChecked); #line default #line hidden #line 27 "..\..\WndImportMailContacts.xaml" this.chkAll.Unchecked += new System.Windows.RoutedEventHandler(this.HeaderChecked); #line default #line hidden return; case 7: this.chkNoDuplicates = ((System.Windows.Controls.CheckBox)(target)); return; case 8: this.cmdLoadImport = ((System.Windows.Controls.Button)(target)); #line 47 "..\..\WndImportMailContacts.xaml" this.cmdLoadImport.Click += new System.Windows.RoutedEventHandler(this.cmdLoadImport_Click); #line default #line hidden return; case 9: this.cmdOK = ((System.Windows.Controls.Button)(target)); #line 48 "..\..\WndImportMailContacts.xaml" this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click); #line default #line hidden return; case 10: this.cmdCancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }