Пример #1
0
 private void button3_Click(object sender, RoutedEventArgs e)
 {
     MainWindow mWin = new MainWindow();
     mWin.Show();
    this.Close();
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((Login.MainWindow)(target));
                return;

            case 2:
                this.back = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 3:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 4:
                this.c4 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 5:
                this.forgot = ((System.Windows.Controls.TextBlock)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.forgot.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Forgot_MouseLeave);

            #line default
            #line hidden

            #line 18 "..\..\MainWindow.xaml"
                this.forgot.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.Forgot_PreviewMouseMove);

            #line default
            #line hidden
                return;

            case 6:
                this.c5 = ((System.Windows.Controls.Canvas)(target));
                return;

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

            #line 23 "..\..\MainWindow.xaml"
                this.signin.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.Signin_PreviewMouseMove);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.signin.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Signin_MouseLeave);

            #line default
            #line hidden
                return;

            case 8:
                this.username = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.canvas3 = ((System.Windows.Controls.Canvas)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.canvas3.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Canvas3_MouseEnter);

            #line default
            #line hidden

            #line 30 "..\..\MainWindow.xaml"
                this.canvas3.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Canvas3_MouseLeave);

            #line default
            #line hidden
                return;

            case 10:
                this.border2 = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 33 "..\..\MainWindow.xaml"
                this.errb.Click += new System.Windows.RoutedEventHandler(this.Btn_Click_1);

            #line default
            #line hidden
                return;

            case 12:
                this.border3 = ((System.Windows.Controls.Border)(target));
                return;

            case 13:
                this.txt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.canvas2 = ((System.Windows.Controls.Canvas)(target));

            #line 59 "..\..\MainWindow.xaml"
                this.canvas2.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Canvas2_MouseEnter);

            #line default
            #line hidden

            #line 59 "..\..\MainWindow.xaml"
                this.canvas2.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Canvas2_MouseLeave);

            #line default
            #line hidden
                return;

            case 15:
                this.err = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

            case 17:
                this.placeh = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.pwd = ((System.Windows.Controls.PasswordBox)(target));

            #line 71 "..\..\MainWindow.xaml"
                this.pwd.PasswordChanged += new System.Windows.RoutedEventHandler(this.Pwd_PasswordChanged);

            #line default
            #line hidden

            #line 71 "..\..\MainWindow.xaml"
                this.pwd.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Pwd_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 19:
                this.btn = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.btn.Click += new System.Windows.RoutedEventHandler(this.Btn_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.user = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 21:
                this.image = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 22:
                this.r1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 23:
                this.r2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 24:
                this.eth = ((System.Windows.Controls.Image)(target));

            #line 103 "..\..\MainWindow.xaml"
                this.eth.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Eth_MouseEnter);

            #line default
            #line hidden

            #line 103 "..\..\MainWindow.xaml"
                this.eth.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Eth_MouseLeave);

            #line default
            #line hidden
                return;

            case 25:
                this.language = ((System.Windows.Controls.TextBlock)(target));

            #line 105 "..\..\MainWindow.xaml"
                this.language.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Language_MouseEnter);

            #line default
            #line hidden

            #line 105 "..\..\MainWindow.xaml"
                this.language.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Language_MouseLeave);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }