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

            RefreshData();
        }
Beispiel #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();
            }
        }