public FormSelectEntityForInheritance(Entity entity, List <Entity> unavailableEntities, Entity selectedEntity, string title, bool multiSelect, RequestorTypes requestorType) { InitializeComponent(); SetStyle( ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); Clear(); inheritanceHierarchy1.EntityDeleted += new EventHandler(inheritanceHierarchy1_EntityDeleted); TextBoxFocusHelper = new Slyce.Common.TextBoxFocusHelper(new Control[] { textBoxName }); textBoxName.Text = DefaultNewAbstractParentName; MultiSelectEntities = multiSelect; RequestorType = requestorType; Entity = entity; UnavailableEntities = unavailableEntities; Text = title; SelectedEntity = selectedEntity; listViewEntities.CheckBoxes = MultiSelectEntities; FocusHelper = new Slyce.Common.TextBoxFocusHelper(new TextBox[] { textBoxName }); if (requestorType == RequestorTypes.Entity_Create_Abstract_Parent) { MultiSelectEntities = true; } Populate(); superTabControl1.SelectedTab = tabSelectEntity; }
public FormRefactorToComponent(EntityImpl entity, List <Property> properties) { InitializeComponent(); SetStyle( ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); FontItem = new Font(Font.FontFamily.Name, 8F, FontStyle.Regular); FontType = new Font(Font.FontFamily.Name, 7F, FontStyle.Regular); FocusHelper = new Slyce.Common.TextBoxFocusHelper(new TextBox[] { textBoxComponentEntityName, textBoxNewComponentName }); NewComponent = new ComponentSpecificationImpl(NewComponentText); foreach (Property prop in properties) { NewComponent.AddProperty(ComponentPropertyImpl.CreateFromProperty(prop)); } textBoxNewComponentName.Text = NewComponentText; Entity = entity; Properties = properties; int maxHeight = Populate(); ResizeForm(maxHeight); }
public FormSelectEntityForInheritance(Entity entity, List<Entity> unavailableEntities, Entity selectedEntity, string title, bool multiSelect, RequestorTypes requestorType) { InitializeComponent(); SetStyle( ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); Clear(); inheritanceHierarchy1.EntityDeleted += new EventHandler(inheritanceHierarchy1_EntityDeleted); TextBoxFocusHelper = new Slyce.Common.TextBoxFocusHelper(new Control[] { textBoxName }); textBoxName.Text = DefaultNewAbstractParentName; MultiSelectEntities = multiSelect; RequestorType = requestorType; Entity = entity; UnavailableEntities = unavailableEntities; Text = title; SelectedEntity = selectedEntity; listViewEntities.CheckBoxes = MultiSelectEntities; FocusHelper = new Slyce.Common.TextBoxFocusHelper(new TextBox[] { textBoxName }); if (requestorType == RequestorTypes.Entity_Create_Abstract_Parent) MultiSelectEntities = true; Populate(); superTabControl1.SelectedTab = tabSelectEntity; }
public FormSelectEntityForInheritance(Table table, List <Entity> unavailableEntities, Entity selectedEntity, string title, bool multiSelect) { InitializeComponent(); Clear(); MultiSelectEntities = multiSelect; RequestorType = RequestorTypes.Table; Table = table; UnavailableEntities = unavailableEntities; Text = title; SelectedEntity = selectedEntity; FocusHelper = new Slyce.Common.TextBoxFocusHelper(new TextBox[] { textBoxName }); Populate(); }
public FormSelectEntityForInheritance(Table table, List<Entity> unavailableEntities, Entity selectedEntity, string title, bool multiSelect) { InitializeComponent(); Clear(); MultiSelectEntities = multiSelect; RequestorType = RequestorTypes.Table; Table = table; UnavailableEntities = unavailableEntities; Text = title; SelectedEntity = selectedEntity; FocusHelper = new Slyce.Common.TextBoxFocusHelper(new TextBox[] { textBoxName }); Populate(); }
public FormRefactorToComponent(ArchAngel.Providers.EntityModel.Model.EntityLayer.Component component) { InitializeComponent(); SetStyle( ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); FontItem = new Font(Font.FontFamily.Name, 8F, FontStyle.Regular); FontType = new Font(Font.FontFamily.Name, 7F, FontStyle.Regular); FocusHelper = new Slyce.Common.TextBoxFocusHelper(new TextBox[] { textBoxComponentEntityName, textBoxNewComponentName }); ComponentToEdit = component; //Entity = entity; //Properties = properties; int maxHeight = Populate(); ResizeForm(maxHeight); }
public FormSelectExistingEntity(Entity entity, List<Entity> unavailableEntities, Entity selectedEntity, string title, bool multiSelect, RequestorTypes requestorType) { InitializeComponent(); Clear(); MultiSelect = multiSelect; RequestorType = requestorType; Entity = entity; UnavailableEntities = unavailableEntities; Text = title; SelectedEntity = selectedEntity; listViewEx1.CheckBoxes = MultiSelect; FocusHelper = new Slyce.Common.TextBoxFocusHelper(new TextBox[] { textBoxName }); if (requestorType == RequestorTypes.Entity_Create_Abstract_Parent) MultiSelect = true; Populate(); PopulateItemsForEntity(); }
public FormSelectExistingEntity(Entity entity, List <Entity> unavailableEntities, Entity selectedEntity, string title, bool multiSelect, RequestorTypes requestorType) { InitializeComponent(); Clear(); MultiSelect = multiSelect; RequestorType = requestorType; Entity = entity; UnavailableEntities = unavailableEntities; Text = title; SelectedEntity = selectedEntity; listViewEx1.CheckBoxes = MultiSelect; FocusHelper = new Slyce.Common.TextBoxFocusHelper(new TextBox[] { textBoxName }); if (requestorType == RequestorTypes.Entity_Create_Abstract_Parent) { MultiSelect = true; } Populate(); PopulateItemsForEntity(); }