Example #1
0
        void DisposeFreeControls()
        {
            if (this.tabControl_main != null && Program.MainForm != null)
            {
                // 如果当前固定面板拥有 tabControl_main,则要先解除它的拥有关系,否则怕本 Form 摧毁的时候无法 Dispose() 它
                if (Program.MainForm.CurrentPropertyControl == this.tabControl_main)
                {
                    Program.MainForm.CurrentPropertyControl = null;
                }
            }

            ControlExtention.DisposeFreeControls(_freeControls);
        }
Example #2
0
 void DisposeFreeControls()
 {
     ControlExtention.DisposeFreeControls(_freeControls);
 }