public AddMethodForm(SchemaObject schemaObject) { InitializeComponent(); this.schemaObject = schemaObject; schemaMethod = new SchemaObject.SchemaMethod(); PopulateListOfMethodTypes(); PopulateListOfProperties(); }
public AddMethodForm(SchemaObject schemaObject, SchemaObject.SchemaMethod schemaMethod) { InitializeComponent(); this.schemaObject = schemaObject; this.schemaMethod = schemaMethod; PopulateListOfProperties(); PopulateListOfMethodTypes(); txtName.Text = schemaMethod.Name; txtDescription.Text = schemaMethod.Description; txtDisplayName.Text = schemaMethod.DisplayName; cmbType.SelectedItem = schemaMethod.K2Type.ToString(); }