Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            View.AddForm oAddForm = new View.AddForm();
            oAddForm.ShowDialog();

            RefreshData();
        }
Exemple #2
0
        private void edit_button_Click(object sender, EventArgs e)
        {
            int?id = GetId();

            if (id != null)
            {
                View.AddForm oAddForm = new View.AddForm(id);
                oAddForm.ShowDialog();
                RefreshData();
            }
        }