Пример #1
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            FormProvidersAdd form = new FormProvidersAdd();

            form.ShowDialog();

            updateProvidersTable();
        }
Пример #2
0
        private void btn_change_Click(object sender, EventArgs e)
        {
            int      PK_Provider      = Convert.ToInt32(dgv_providers.SelectedRows[0].Cells[7].Value);
            Provider deletingProvider = Program.db.Providers.Find(PK_Provider);

            if (deletingProvider != null)
            {
                FormProvidersAdd form = new FormProvidersAdd(deletingProvider);
                form.ShowDialog();

                updateProvidersTable();
            }
        }