Example #1
0
        public override void InitializeControl(Form parentForm, ContainerControl parent)
        {
            if (parent is ToolContainerControl)
            {
                base.InitializeControl(parentForm, parent);
            }

            throw new ArgumentException("El contenedor solo puede ser un ToolContainerControl", "parent");
        }
Example #2
0
        internal static void PushModal(Form source)
        {
            if (!formList.ContainsKey(source.ID))
            {
                throw new ApplicationException("Form not registered in Manager");
            }

            if (formStack.Count == 0)
            {
                foreach (KeyValuePair<string, Form> item in formList)
                {
                    if (source != item.Value)
                    {
                        item.Value.Disabled = DisableMode.Form;
                    }
                }
            }
            else
            {
                formList[formStack.Peek()].Disabled = DisableMode.Form;
            }

            formStack.Push(source.ID);
        }
Example #3
0
 public static void CloseForm(Form form)
 {
     form.OnClose();
     formList.Remove(form.ID);
 }
Example #4
0
        public virtual void InitializeControl(Form parentForm, ContainerControl parent)
        {
            this.Parent = parent;
            this.ParentForm = parentForm;

            this.Initialize();
        }