Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DlgChooseMailContacts = ((PNotes.NET.WndChooseMailContacts)(target));

            #line 17 "..\..\WndChooseMailContacts.xaml"
                this.DlgChooseMailContacts.Loaded += new System.Windows.RoutedEventHandler(this.DlgChooseMailContacts_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.grdMailContacts = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.chkAll = ((System.Windows.Controls.CheckBox)(target));

            #line 24 "..\..\WndChooseMailContacts.xaml"
                this.chkAll.Checked += new System.Windows.RoutedEventHandler(this.chkAll_Checked);

            #line default
            #line hidden

            #line 24 "..\..\WndChooseMailContacts.xaml"
                this.chkAll.Unchecked += new System.Windows.RoutedEventHandler(this.chkAll_Checked);

            #line default
            #line hidden
                return;

            case 5:
                this.cmdOK = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\WndChooseMailContacts.xaml"
                this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.cmdCancel = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
 private void cmdShowContacts_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var dlgChoose = new WndChooseMailContacts {Owner = this};
         dlgChoose.MailRecipientsChosen += dlgChoose_MailRecipientsChosen;
         var showDialog = dlgChoose.ShowDialog();
         if (showDialog == null || !showDialog.Value)
             dlgChoose.MailRecipientsChosen -= dlgChoose_MailRecipientsChosen;
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Example #3
0
 private void cmdShowContacts_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var dlgChoose = new WndChooseMailContacts {
             Owner = this
         };
         dlgChoose.MailRecipientsChosen += dlgChoose_MailRecipientsChosen;
         var showDialog = dlgChoose.ShowDialog();
         if (showDialog == null || !showDialog.Value)
         {
             dlgChoose.MailRecipientsChosen -= dlgChoose_MailRecipientsChosen;
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DlgChooseMailContacts = ((PNotes.NET.WndChooseMailContacts)(target));
     
     #line 17 "..\..\WndChooseMailContacts.xaml"
     this.DlgChooseMailContacts.Loaded += new System.Windows.RoutedEventHandler(this.DlgChooseMailContacts_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.grdMailContacts = ((System.Windows.Controls.ListView)(target));
     return;
     case 3:
     this.chkAll = ((System.Windows.Controls.CheckBox)(target));
     
     #line 24 "..\..\WndChooseMailContacts.xaml"
     this.chkAll.Checked += new System.Windows.RoutedEventHandler(this.chkAll_Checked);
     
     #line default
     #line hidden
     
     #line 24 "..\..\WndChooseMailContacts.xaml"
     this.chkAll.Unchecked += new System.Windows.RoutedEventHandler(this.chkAll_Checked);
     
     #line default
     #line hidden
     return;
     case 5:
     this.cmdOK = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\WndChooseMailContacts.xaml"
     this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.cmdCancel = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }