private void addPropertyBtn_Click(object sender, EventArgs e) { PropertyActions propertyOP = new PropertyActions(); propertyOP.Text = "Create"; propertyOP.ShowDialog(); GetPropertyData(); }
private void editPropertyBtn_Click(object sender, EventArgs e) { try { int propNum = Convert.ToInt32(propertyGridView.SelectedRows[0].Cells[0].Value.ToString()); PropertyActions propertyOP = new PropertyActions(); propertyOP.Text = "Edit"; propertyOP.EditProperty(propNum); propertyOP.ShowDialog(); GetPropertyData(); } catch {} }