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

            work.AddDB(tbox.Text);
            this.Hide();
            MessageBox.Show("БД создан");
            this.Close();
        }
コード例 #2
0
        private void btn1_Click(object sender, RoutedEventArgs e)
        {
            //string constr = @"Data Source=DESKTOP-GM2O70F\MSSQLDEV;Initial Catalog=GosSoviet;Integrated Security=True";
            SQLWork work = new SQLWork();

            if (work.FindUser(tbLog.Text, tbPass.Text))
            {
                Loading ld = new Loading();
                this.Hide();
                ld.Show();
            }
            else
            {
                MessageBox.Show("Неправильный логин или пороль", "", MessageBoxButton.OK, MessageBoxImage.Exclamation);
            }
        }
コード例 #3
0
 public AddTableWindow(SQLWork work)
 {
     sqlWork = work;
     InitializeComponent();
 }