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"); }
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); }
public static void CloseForm(Form form) { form.OnClose(); formList.Remove(form.ID); }
public virtual void InitializeControl(Form parentForm, ContainerControl parent) { this.Parent = parent; this.ParentForm = parentForm; this.Initialize(); }