private void update_button_Click(object sender, EventArgs e) { this.Hide(); var CR = new CrudResource(true, int.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString())); CR.Closed += (s, args) => this.Close(); CR.Show(); }
private void add_button_Click(object sender, EventArgs e) { this.Hide(); var CR = new CrudResource(false); CR.Closed += (s, args) => this.Close(); CR.Show(); }