Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main = ((PasswordSaver.MainWindow)(target));

            #line 6 "..\..\MainWindow.xaml"
                this.Main.Closing += new System.ComponentModel.CancelEventHandler(this.Main_Closing);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                this.Main.StateChanged += new System.EventHandler(this.Main_StateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.NotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.NotifyIcon.TrayMouseDoubleClick += new System.Windows.RoutedEventHandler(this.NotifyIcon_TrayMouseDoubleClick);

            #line default
            #line hidden
                return;

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

            #line 12 "..\..\MainWindow.xaml"
                this.ResourceInput.GotFocus += new System.Windows.RoutedEventHandler(this.ClearBoxOnFocus);

            #line default
            #line hidden
                return;

            case 4:
                this.LoginInput = ((System.Windows.Controls.TextBox)(target));

            #line 14 "..\..\MainWindow.xaml"
                this.LoginInput.GotFocus += new System.Windows.RoutedEventHandler(this.ClearBoxOnFocus);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\MainWindow.xaml"
                this.PasswordInput.GotFocus += new System.Windows.RoutedEventHandler(this.ClearBoxOnFocus);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\MainWindow.xaml"
                this.Add_btn.Click += new System.Windows.RoutedEventHandler(this.Add_btn_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.AllList_btn = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.AllList_btn.Click += new System.Windows.RoutedEventHandler(this.AllList_btn_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Main = ((PasswordSaver.MainWindow)(target));
     
     #line 6 "..\..\MainWindow.xaml"
     this.Main.Closing += new System.ComponentModel.CancelEventHandler(this.Main_Closing);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     this.Main.StateChanged += new System.EventHandler(this.Main_StateChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.NotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
     
     #line 11 "..\..\MainWindow.xaml"
     this.NotifyIcon.TrayMouseDoubleClick += new System.Windows.RoutedEventHandler(this.NotifyIcon_TrayMouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 3:
     this.ResourceInput = ((System.Windows.Controls.TextBox)(target));
     
     #line 12 "..\..\MainWindow.xaml"
     this.ResourceInput.GotFocus += new System.Windows.RoutedEventHandler(this.ClearBoxOnFocus);
     
     #line default
     #line hidden
     return;
     case 4:
     this.LoginInput = ((System.Windows.Controls.TextBox)(target));
     
     #line 14 "..\..\MainWindow.xaml"
     this.LoginInput.GotFocus += new System.Windows.RoutedEventHandler(this.ClearBoxOnFocus);
     
     #line default
     #line hidden
     return;
     case 5:
     this.PasswordInput = ((System.Windows.Controls.TextBox)(target));
     
     #line 15 "..\..\MainWindow.xaml"
     this.PasswordInput.GotFocus += new System.Windows.RoutedEventHandler(this.ClearBoxOnFocus);
     
     #line default
     #line hidden
     return;
     case 6:
     this.Add_btn = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\MainWindow.xaml"
     this.Add_btn.Click += new System.Windows.RoutedEventHandler(this.Add_btn_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.AllList_btn = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\MainWindow.xaml"
     this.AllList_btn.Click += new System.Windows.RoutedEventHandler(this.AllList_btn_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }