コード例 #1
0
        private void Edit_Click(object sender, EventArgs e)
        {
            if (DataBaseGrid.SelectedRows.Count == 0)
            {
                MessageBox.Show("No selected row!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            AddForm addForm = new AddForm("Редагувати", EnumAction.Update, this);

            addForm.Show(this);
        }
コード例 #2
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            var addForm = new AddForm(this);

            addForm.Show();
        }
コード例 #3
0
        private void Add_button_Click(object sender, EventArgs e)
        {
            AddForm addForm = new AddForm("Створити", EnumAction.Add, this);

            addForm.Show(this);
        }