public static Form browseForm(Forms.MasterData_v1_Form form, ref object sender) { Util.displayForm(null, form, false); if (form.DialogResult == DialogResult.OK) { InputControl_Textbox control = (InputControl_Textbox)sender; control.setValue(form.BrowsedItemSelectionDescription, form.BrowsedItemSelectionId); if (control.ParentForm.GetNextControl(control, true) != null) { control.ParentForm.GetNextControl(control, true).Focus(); } } return(form); }
/// <summary> /// Input is sanitized before used to update DBConnection /// </summary> public static void update(Desktop.UserControls.InputControl_Textbox serverName, Desktop.UserControls.InputControl_Textbox databaseName) { DBConnection.update(serverName.ValueText, databaseName.ValueText); }