internal void CalcViewInfo() { using (Graphics graphics = CreateGraphics()) { ViewInfo.CalcViewInfo(graphics); ReminderListBox.Bounds = ViewInfo.ItemsRectangle; ReminderListBox.CalcButton(graphics); EditPanel.Bounds = ViewInfo.ItemsRectangle; } MinimumSize = new Size(ViewInfo.HeaderTextBounds.Width + HeaderButton.ButtonViewInfo.Bounds.Width, 0); ReminderListBox.Invalidate(); }
private void UpdateLayoutButScrollBar() { if (ViewInfo.IsValid || IsLockUpdate) { return; } FitColumns(); ViewInfo.CalcViewInfo(); //UpdateScrollBars(); //navigationHelper.UpdateButtons(); RaiseLayoutUpdated(); }
private void RefreshValues() { ViewInfo.CalcViewInfo(); Invalidate(); }