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

            #line 17 "..\..\WndExchangeLists.xaml"
                this.DlgTags.Loaded += new System.Windows.RoutedEventHandler(this.DlgTags_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.lblCurrentTags = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.lstAvailabe = ((System.Windows.Controls.ListBox)(target));

            #line 31 "..\..\WndExchangeLists.xaml"
                this.lstAvailabe.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstAvailabe_SelectionChanged);

            #line default
            #line hidden

            #line 31 "..\..\WndExchangeLists.xaml"
                this.lstAvailabe.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lstAvailabe_MouseDoubleClick);

            #line default
            #line hidden
                return;

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

            #line 33 "..\..\WndExchangeLists.xaml"
                this.cmdAvToCurr.Click += new System.Windows.RoutedEventHandler(this.cmdAvToCurr_Click);

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\WndExchangeLists.xaml"
                this.cmdCurrToAv.Click += new System.Windows.RoutedEventHandler(this.cmdCurrToAv_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.lstCurrent = ((System.Windows.Controls.ListBox)(target));

            #line 36 "..\..\WndExchangeLists.xaml"
                this.lstCurrent.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstCurrent_SelectionChanged);

            #line default
            #line hidden

            #line 36 "..\..\WndExchangeLists.xaml"
                this.lstCurrent.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lstCurrent_MouseDoubleClick);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 9:
                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.DlgTags = ((PNotes.NET.WndExchangeLists)(target));
     
     #line 17 "..\..\WndExchangeLists.xaml"
     this.DlgTags.Loaded += new System.Windows.RoutedEventHandler(this.DlgTags_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.lblAvailableTags = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 3:
     this.lblCurrentTags = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.lstAvailabe = ((System.Windows.Controls.ListBox)(target));
     
     #line 31 "..\..\WndExchangeLists.xaml"
     this.lstAvailabe.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstAvailabe_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 31 "..\..\WndExchangeLists.xaml"
     this.lstAvailabe.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lstAvailabe_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 5:
     this.cmdAvToCurr = ((System.Windows.Controls.Button)(target));
     
     #line 33 "..\..\WndExchangeLists.xaml"
     this.cmdAvToCurr.Click += new System.Windows.RoutedEventHandler(this.cmdAvToCurr_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.cmdCurrToAv = ((System.Windows.Controls.Button)(target));
     
     #line 34 "..\..\WndExchangeLists.xaml"
     this.cmdCurrToAv.Click += new System.Windows.RoutedEventHandler(this.cmdCurrToAv_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.lstCurrent = ((System.Windows.Controls.ListBox)(target));
     
     #line 36 "..\..\WndExchangeLists.xaml"
     this.lstCurrent.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstCurrent_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 36 "..\..\WndExchangeLists.xaml"
     this.lstCurrent.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lstCurrent_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 8:
     this.cmdOK = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\WndExchangeLists.xaml"
     this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.cmdCancel = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #3
0
 private void actionTagsCurrent()
 {
     try
     {
         var note = getSelectedNote();
         if (note == null) return;
         var d = new WndExchangeLists(note.ID, ExchangeLists.Tags) { Owner = this };
         d.ShowDialog();
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }