private void addObjectBtn_Click(object sender, EventArgs e) { Add_rent_object form = new Add_rent_object(); form.ShowDialog(); fill_ObjectsTable(); }
private void editObjectBtn_Click(object sender, EventArgs e) { var name = get_SelectedName(); if (name == null) { MessageBox.Show("No rent object selected"); return; } Add_rent_object form = new Add_rent_object(name); form.ShowDialog(); fill_ObjectsTable(); }