Beispiel #1
0
        private ImplementData GetResult(string entityName)
        {
            ImplementData result =
                new ImplementData(cmbTypes.SelectedIndex == VALUE_ENTITY ? EntityKind.Entity : EntityKind.Structure,
                                  entityName);

            result.Selection = GetSelectedInterfaces();
            result.Root      = SelectedRootInterface;
            return(result);
        }
Beispiel #2
0
        public static bool DialogShow(string caption, string message, InterfaceTreeItem sourceInterface, int width, out ImplementData resultData)
        {
            resultData = null;
            FormImplementInterface form;
            string entityName = string.Empty;
            bool   result     = InternalDialogShow(width, caption, message, obj => obj.PopulateForm(sourceInterface),
                                                   ref entityName, out form);

            if (result)
            {
                resultData = form.GetResult(entityName);
            }

            return(result);
        }
Beispiel #3
0
 public static bool DialogShow(string caption, string message, InterfaceTreeItem sourceInterface, out ImplementData resultData)
 {
     return(DialogShow(caption, message, sourceInterface, DEFAULT_WIDTH, out resultData));
 }