public static void ExecuteEdit(IWin32Window owner, Fields fields) { using (var form = new ViewFieldsForm()) { form.Init(fields, true); form.ShowDialog(owner); } }
public static Field ExecuteSelect(IWin32Window owner, Fields fields) { using (var form = new ViewFieldsForm()) { form.Init(fields, false); if (form.ShowDialog(owner) == DialogResult.OK) return form.GetSelectedField(); return null; } }