Example #1
0
        private void bt_Cancel_Click(object sender, RoutedEventArgs e)
        {
            AuthorizationPage ps2 = new AuthorizationPage();

            ps2.Show();
            Hide();
        }
Example #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            RegistryKey registry = Registry.CurrentUser;
            RegistryKey key      = registry.CreateSubKey("Server_Configuration");

            RegistryKey a = registry.OpenSubKey("Server_Configuration");
            RegistryKey b = registry.OpenSubKey("Server_Configuration");

            string DS = a.GetValue("DS").ToString();
            string IC = b.GetValue("IC").ToString();

            if (DS == "")
            {
                //вызов класса конфигурации
                Configuration_class configuration = new Configuration_class();
                //присвоение event action событий
                configuration.server_Collection += Configuration_server_Collection;
                //
                Thread threadservers = new Thread(configuration.SQL_Server_Enumurator);
                //запуск потока
                threadservers.Start();
            }
            else
            {
                AuthorizationPage ps2 = new AuthorizationPage();
                ps2.Show();
                Hide();
            }
        }
Example #3
0
        private void bt_Reg_Sotr_Click(object sender, RoutedEventArgs e)
        {
            procedures.Regestration(tb_Familiya_Sotrudnik.Text.ToString(), tb_Name_Sotrudnik.Text.ToString(), tb_Otchestvo_Sotrudnik.Text.ToString(), tb_LoginS.Text.ToString(), tb_PasswordS.Text.ToString());
            MessageBox.Show("Не забудте дозаполнить данные о новом сотруднике");
            AuthorizationPage ps2 = new AuthorizationPage();

            ps2.Show();
            Hide();
        }
Example #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AuthorizForm = ((Bakery.AuthorizationPage)(target));
                return;

            case 2:
                this.lblEnterLogin = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.lblEnterPassword = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.tbEnterLogin = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 5:
                this.tbEnterPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

            #line 36 "..\..\AuthorizationPage.xaml"
                this.bt_Enter.Click += new System.Windows.RoutedEventHandler(this.bt_Enter_Click);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\AuthorizationPage.xaml"
                this.bt_Regestration.Click += new System.Windows.RoutedEventHandler(this.bt_Regestration_Click);

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