private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var work = new SQLWork();

            work.AddDB(tbox.Text);
            this.Hide();
            MessageBox.Show("БД создан");
            this.Close();
        }
        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);
            }
        }
 public AddTableWindow(SQLWork work)
 {
     sqlWork = work;
     InitializeComponent();
 }