コード例 #1
0
ファイル: IOFormSplitContainer.cs プロジェクト: rinavin/RCJS
 /// <summary>
 /// Activate the splitters which belong to current panel
 /// </summary>
 /// <param name="currentPanels"></param>
 public void ActivateSplitters(List <Panel> currentPanels)
 {
     foreach (SplitterWithExpander splitter in Splitters.OfType <SplitterWithExpander>())
     {
         splitter.IsActive = currentPanels.Contains(GetPanelBySplitter(splitter));
     }
 }
コード例 #2
0
ファイル: IOFormSplitContainer.cs プロジェクト: rinavin/RCJS
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                UnRegisterSizeChangedEvents();
                foreach (Panel panel in Panels)
                {
                    panel.VisibleChanged -= Panel_VisibleChanged;
                }

                foreach (SplitterWithExpander splitter in Splitters.OfType <SplitterWithExpander>())
                {
                    splitter.PropertyChanged -= Splitter_PropertyChanged;
                }
            }
            base.Dispose(disposing);
        }