Beispiel #1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            DataTable dt   = new DataTable();
            Bank_List form = new Bank_List(dt);

            form.Show();
            this.Hide();
        }
Beispiel #2
0
        private void filter_Click(object sender, EventArgs e)
        {
            using (Model.Context dbcontext = new Model.Context())
            {
                bank newBank = new bank()
                {
                    number = shomareHesab.Text,
                    title  = name.Text,
                    type   = bankType.SelectedItem.ToString(),
                };
                dbcontext.banks.Add(newBank);
                dbcontext.SaveChanges();

                DataTable dt       = new DataTable();
                Bank_List userList = new Bank_List(dt);
                userList.Show();
                this.Hide();
            }
        }