private void gridMethods_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { AddMethodForm frmAddMethod = new AddMethodForm(schemaObject, schemaObject.SchemaMethods[e.RowIndex]); if (frmAddMethod.ShowDialog() == DialogResult.OK) { schemaObject.SchemaMethods[e.RowIndex] = schemaObject.UpdateMethod(frmAddMethod.schemaMethod, (List <SchemaMethodProperty>)frmAddMethod.gridProperties.DataSource); updateGrids(); } }
private void btnAddMethod_Click(object sender, EventArgs e) { if (schemaObject.SchemaProperties.Count <= 0) { MessageBox.Show("Add properties before trying to add a method"); } else { AddMethodForm frmAddMethod = new AddMethodForm(schemaObject); if (frmAddMethod.ShowDialog() == DialogResult.OK) { schemaObject.SchemaMethods.Add(schemaObject.UpdateMethod(frmAddMethod.schemaMethod, (List <SchemaMethodProperty>)frmAddMethod.gridProperties.DataSource)); updateGrids(); } } }
private void btnAddMethod_Click(object sender, EventArgs e) { if (schemaObject.SchemaProperties.Count <= 0) { MessageBox.Show("Add properties before trying to add a method"); } else { AddMethodForm frmAddMethod = new AddMethodForm(schemaObject); if (frmAddMethod.ShowDialog() == DialogResult.OK) { schemaObject.SchemaMethods.Add(schemaObject.UpdateMethod(frmAddMethod.schemaMethod, (List<SchemaMethodProperty>)frmAddMethod.gridProperties.DataSource)); updateGrids(); } } }
private void gridMethods_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { AddMethodForm frmAddMethod = new AddMethodForm(schemaObject, schemaObject.SchemaMethods[e.RowIndex]); if (frmAddMethod.ShowDialog() == DialogResult.OK) { schemaObject.SchemaMethods[e.RowIndex] = schemaObject.UpdateMethod(frmAddMethod.schemaMethod, (List<SchemaMethodProperty>)frmAddMethod.gridProperties.DataSource); updateGrids(); } }