コード例 #1
0
 public static void ExecuteEdit(IWin32Window owner, Fields fields)
 {
     using (var form = new ViewFieldsForm())
     {
         form.Init(fields, true);
         form.ShowDialog(owner);
     }
 }
コード例 #2
0
        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;
            }
        }