private void BtnRegister_Click(object sender, RoutedEventArgs e)
        {
            regForm w2 = new regForm(this);

            this.Hide();
            w2.Show();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RegisterWindow = ((Zadatak.Login.regForm)(target));
                return;

            case 2:
                this.txtUsername = ((System.Windows.Controls.TextBox)(target));

            #line 11 "..\..\..\Login\RegisterWindow.xaml"
                this.txtUsername.GotFocus += new System.Windows.RoutedEventHandler(this.TxtUsername_GotFocus);

            #line default
            #line hidden

            #line 11 "..\..\..\Login\RegisterWindow.xaml"
                this.txtUsername.LostFocus += new System.Windows.RoutedEventHandler(this.TxtUsername_LostFocus);

            #line default
            #line hidden
                return;

            case 3:
                this.txtPassword = ((System.Windows.Controls.PasswordBox)(target));

            #line 14 "..\..\..\Login\RegisterWindow.xaml"
                this.txtPassword.GotFocus += new System.Windows.RoutedEventHandler(this.TxtPassword_GotFocus);

            #line default
            #line hidden

            #line 14 "..\..\..\Login\RegisterWindow.xaml"
                this.txtPassword.LostFocus += new System.Windows.RoutedEventHandler(this.TxtPassword_LostFocus);

            #line default
            #line hidden
                return;

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

            #line 17 "..\..\..\Login\RegisterWindow.xaml"
                this.txtEmail.GotFocus += new System.Windows.RoutedEventHandler(this.TxtEmail_GotFocus);

            #line default
            #line hidden

            #line 17 "..\..\..\Login\RegisterWindow.xaml"
                this.txtEmail.LostFocus += new System.Windows.RoutedEventHandler(this.TxtEmail_LostFocus);

            #line default
            #line hidden
                return;

            case 5:
                this.imgUser = ((System.Windows.Controls.Image)(target));
                return;

            case 6:

            #line 23 "..\..\..\Login\RegisterWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 7:

            #line 24 "..\..\..\Login\RegisterWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

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