Ejemplo n.º 1
0
        /// <summary>
        /// Adds a form to the collection, and assigns it an automatically generated index.
        /// </summary>
        public void AddForm(MainFormIOController IOController)
        {
            MainForm FormToAdd = new MainForm(IOController, this);

            FormToAdd.FormIndex       = this.Count;
            FormToAdd.MainFormClosed += FormClosed;
            this.Add(FormToAdd);
        }
Ejemplo n.º 2
0
        public MainForm(MainFormIOController IOController, MainFormCollection Collection)
        {
            this.IOController = IOController;
            this.collection   = Collection;

            InitializeComponent();
            SetupHeader(this.IOController.FormTitle);

            this.IOController.SetAssociatedForm(this);

            IOController.SetupControls();

            Resize     += CustomOnResize;
            ResizeEnd  += CustomEndResize;
            FormClosed += MainForm_FormClosed;
            IOController.MainPanel.Click += MainPanel_Click;
        }