Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ThisControl = ((WPFTaskbarNotifierExample.Window1)(target));
                return;

            case 2:
                this.NotifyIcon = ((WPFTaskbarNotifier.NotifyIcon)(target));

            #line 20 "..\..\Window1.xaml"
                this.NotifyIcon.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.NotifyIcon_DoubleClick);

            #line default
            #line hidden
                return;

            case 3:

            #line 23 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NotifyIconOpen_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 26 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NotifyIconExit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ThisControl = ((WPFTaskbarNotifierExample.Window1)(target));
     return;
     case 2:
     this.NotifyIcon = ((WPFTaskbarNotifier.NotifyIcon)(target));
     
     #line 20 "..\..\..\Window1.xaml"
     this.NotifyIcon.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.NotifyIcon_DoubleClick);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 23 "..\..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NotifyIconOpen_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 24 "..\..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NotifyIconConfigure_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 26 "..\..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NotifyIconExit_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.TitleTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.MessageTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     
     #line 51 "..\..\..\Window1.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 52 "..\..\..\Window1.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ClearAll_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }