예제 #1
0
 internal void MeasureItem(WorkUnitPanelItem panelItem, out Size collapsedSize, out Size expandSize)
 {
     base.SuspendLayout();
     this.templatePanel.Top = -32768;
     collapsedSize          = WorkUnitPanel.MeasureCollapsedSizeForPanelItem(this.templatePanel, panelItem);
     expandSize             = WorkUnitPanel.MeasureExpandedSizeForPanelItem(this.templatePanel, panelItem);
     base.ResumeLayout(false);
 }
예제 #2
0
        private void PanelItem_SizeChanged(object sender, EventArgs e)
        {
            WorkUnitPanelItem workUnitPanelItem = (WorkUnitPanelItem)sender;

            if (workUnitPanelItem.Control != null)
            {
                this.GetMaximumHeightofPanelItemsInBestTimes();
                this.UpdateTopofAffectedPanels(this.panelItems.IndexOf(workUnitPanelItem));
            }
        }
예제 #3
0
 internal static Size MeasureExpandedSizeForPanelItem(WorkUnitPanel templatePanel, WorkUnitPanelItem panelItem)
 {
     templatePanel.SuspendLayout();
     templatePanel.WorkUnitPanelItem = panelItem;
     templatePanel.FastSetIsMinimized(false);
     templatePanel.ResumeLayout();
     return(templatePanel.Size);
 }
예제 #4
0
        internal static Size MeasureCollapsedSizeForPanelItem(WorkUnitPanel templatePanel, WorkUnitPanelItem panelItem)
        {
            Size size = templatePanel.Size;

            size.Height = templatePanel.CaptionStrip.Height;
            return(size);
        }