void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DlgSyncComps = ((PNotes.NET.WndSyncComps)(target));
     
     #line 19 "..\..\WndSyncComps.xaml"
     this.DlgSyncComps.Loaded += new System.Windows.RoutedEventHandler(this.DlgSyncComps_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.lblCompName = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 3:
     this.txtCompName = ((System.Windows.Controls.TextBox)(target));
     
     #line 36 "..\..\WndSyncComps.xaml"
     this.txtCompName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtCompName_TextChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.lblDataDir = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     this.txtDataDir = ((System.Windows.Controls.TextBox)(target));
     
     #line 38 "..\..\WndSyncComps.xaml"
     this.txtDataDir.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtDataDir_TextChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.cmdDataDir = ((System.Windows.Controls.Button)(target));
     
     #line 39 "..\..\WndSyncComps.xaml"
     this.cmdDataDir.Click += new System.Windows.RoutedEventHandler(this.cmdDataDir_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.lblDBDir = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 8:
     this.txtDBDir = ((System.Windows.Controls.TextBox)(target));
     return;
     case 9:
     this.cmdDBDir = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\WndSyncComps.xaml"
     this.cmdDBDir.Click += new System.Windows.RoutedEventHandler(this.cmdDBDir_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.chkUseDataDir = ((System.Windows.Controls.CheckBox)(target));
     
     #line 43 "..\..\WndSyncComps.xaml"
     this.chkUseDataDir.Checked += new System.Windows.RoutedEventHandler(this.chkUseDataDir_Checked);
     
     #line default
     #line hidden
     
     #line 43 "..\..\WndSyncComps.xaml"
     this.chkUseDataDir.Unchecked += new System.Windows.RoutedEventHandler(this.chkUseDataDir_Checked);
     
     #line default
     #line hidden
     return;
     case 11:
     this.cmdOK = ((System.Windows.Controls.Button)(target));
     
     #line 49 "..\..\WndSyncComps.xaml"
     this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.cmdCancel = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }
 private void cmdAddComp_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var d = new WndSyncComps(this, AddEditMode.Add);
         var showDialog = d.ShowDialog();
         if (showDialog != null && showDialog.Value)
         {
             fillSyncComps(false);
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
 private void editSyncComp()
 {
     try
     {
         var sc = getSelectedSyncComp();
         if (sc == null) return;
         var d = new WndSyncComps(this, sc, AddEditMode.Edit);
         var showDialog = d.ShowDialog();
         if (showDialog != null && showDialog.Value)
         {
             fillSyncComps(false);
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Beispiel #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DlgSyncComps = ((PNotes.NET.WndSyncComps)(target));

            #line 19 "..\..\WndSyncComps.xaml"
                this.DlgSyncComps.Loaded += new System.Windows.RoutedEventHandler(this.DlgSyncComps_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.lblCompName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.txtCompName = ((System.Windows.Controls.TextBox)(target));

            #line 36 "..\..\WndSyncComps.xaml"
                this.txtCompName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtCompName_TextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.lblDataDir = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.txtDataDir = ((System.Windows.Controls.TextBox)(target));

            #line 38 "..\..\WndSyncComps.xaml"
                this.txtDataDir.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtDataDir_TextChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.cmdDataDir = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\WndSyncComps.xaml"
                this.cmdDataDir.Click += new System.Windows.RoutedEventHandler(this.cmdDataDir_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.lblDBDir = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.txtDBDir = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.cmdDBDir = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\WndSyncComps.xaml"
                this.cmdDBDir.Click += new System.Windows.RoutedEventHandler(this.cmdDBDir_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.chkUseDataDir = ((System.Windows.Controls.CheckBox)(target));

            #line 43 "..\..\WndSyncComps.xaml"
                this.chkUseDataDir.Checked += new System.Windows.RoutedEventHandler(this.chkUseDataDir_Checked);

            #line default
            #line hidden

            #line 43 "..\..\WndSyncComps.xaml"
                this.chkUseDataDir.Unchecked += new System.Windows.RoutedEventHandler(this.chkUseDataDir_Checked);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 12:
                this.cmdCancel = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }