Ejemplo n.º 1
0
        private void bt_Cancel_Click(object sender, RoutedEventArgs e)
        {
            AuthorizationPage ps2 = new AuthorizationPage();

            ps2.Show();
            Hide();
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
        }