private void pictureBox1_Click(object sender, EventArgs e) { DataTable dt = new DataTable(); Bank_List form = new Bank_List(dt); form.Show(); this.Hide(); }
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(); } }