예제 #1
0
        public void bankRefresh()
        {
            dbContext = new Purchase.AccountingSystem();
            dbContext.BankSets.Load();
            bindingSource3.DataSource = dbContext.BankSets.Local.ToBindingList();

            VendBankName.Refresh();
        }
예제 #2
0
        private void simpleButton6_Click(object sender, EventArgs e)
        {
            Form storeForm = new Form();

            storeForm.Controls.Add(new AddBank());
            storeForm.BackColor     = System.Drawing.Color.White;
            storeForm.StartPosition = FormStartPosition.CenterScreen;
            storeForm.Width         = 320;
            //storeForm.WindowState = FormWindowState.Maximized;
            DialogResult x = storeForm.ShowDialog();

            if (x == DialogResult.Cancel)
            {
                dbContext = new Purchase.AccountingSystem();
                bindingSource3.DataSource = dbContext.BankSets.ToList();
                VendBankName.Refresh();
            }
        }