Beispiel #1
0
        private void button9_Click(object sender, EventArgs e)
        {
            try
            {
                DataRowView row = _branches.AddNew();

                row.BeginEdit();
                Form form = new EditBranches(row);
                form.ShowDialog();
                row.EndEdit();
            }
            catch (Exception ex)
            {
                HandleException(ex.Message);
            }
        }
Beispiel #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            try
            {
                if (dataGridView3.SelectedRows.Count == 0)
                {
                    return;
                }

                DataRowView row = _branches[dataGridView3.SelectedRows[0].Index];

                row.BeginEdit();
                Form form = new EditBranches(row);
                form.ShowDialog();
                row.EndEdit();
            }
            catch (Exception ex)
            {
                HandleException(ex.Message);
            }
        }