コード例 #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            lgnForm w1 = new lgnForm();

            this.Close();
            w1.Show();
        }
コード例 #2
0
        public regForm(lgnForm form)
        {
            parent = form;
            users  = parent.Users;

            if (users == null)
            {
                users = new ObservableCollection <User>();
            }

            InitializeComponent();
            this.DataContext = this;

            cmdReg.InputGestures.Add(new KeyGesture(Key.Enter));
            CommandBindings.Add(new CommandBinding(cmdReg, Button_Click));
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LoginForm = ((Zadatak.Login.lgnForm)(target));
                return;

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

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

            #line default
            #line hidden

            #line 21 "..\..\..\Login\lgnWindow.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 23 "..\..\..\Login\lgnWindow.xaml"
                this.txtPassword.LostFocus += new System.Windows.RoutedEventHandler(this.TxtPassword_LostFocus);

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 4:
                this.btnSign = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\..\Login\lgnWindow.xaml"
                this.btnSign.Click += new System.Windows.RoutedEventHandler(this.BtnSign_Click);

            #line default
            #line hidden
                return;

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

            #line 26 "..\..\..\Login\lgnWindow.xaml"
                this.btnRegister.Click += new System.Windows.RoutedEventHandler(this.BtnRegister_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.errLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }