public TabControl() { SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.Selectable, true); SetStyle(ControlStyles.SupportsTransparentBackColor, true); _renderer = new MilborneRenderer(); TabPages = new TabPageCollection(this); class17_0 = new DockButtonInfo(); class17_1 = new DockButtonInfo(); _timer = new Timer {Interval = 20}; _timer.Tick += OnTimerTick; }
private void method_0(Graphics g, ITabControlRenderer renderer, DockButtonInfo class17_3, SandDockButtonType buttonType, bool bool_2) { if (class17_3.Visible) { DrawItemState drawItemState = DrawItemState.Default; if (Class17_0 == class17_3) { drawItemState |= DrawItemState.HotLight; if (bool_1) { drawItemState |= DrawItemState.Selected; } } if (!bool_2) { drawItemState |= DrawItemState.Disabled; } renderer.DrawTabControlButton(g, class17_3.Bounds, buttonType, drawItemState); } }
internal void method_10(Graphics g, RendererBase renderer, DockButtonInfo class17_4, SandDockButtonType buttonType, bool bool_7) { if (!class17_4.Visible) return; var state = DrawItemState.Default; if (ClickedDockButton == class17_4) { state |= DrawItemState.HotLight; if (bool_2) { state |= DrawItemState.Selected; } } if (!bool_7) { state |= DrawItemState.Disabled; } renderer.DrawDocumentStripButton(g, class17_4.Bounds, buttonType, state); }
private void method_13(DockButtonInfo class17_3) { if (class17_3 == class17_0 || class17_3 == class17_1) { method_8(); } }
public ControlLayoutSystem() { Controls = new DockControlCollection(this); _closeDockButton = new DockButtonInfo(); _pinDockButton = new DockButtonInfo(); _positionDockButton = new DockButtonInfo(); }
internal virtual void vmethod_8(DockButtonInfo button) { if (ClickedDockButton == _closeDockButton) OnCloseButtonClick(EventArgs.Empty); else if (ClickedDockButton == _pinDockButton) OnPinButtonClick(); else if (ClickedDockButton == _positionDockButton) OnPositionButtonClick(); }
internal virtual void vmethod_7(DockButtonInfo class17_4) { }
internal override void vmethod_8(DockButtonInfo class17_8) { if (class17_8 == this.class17_6) { this.OnCloseButtonClick(new CancelEventArgs()); return; } if (class17_8 != this.class17_4 && class17_8 != this.class17_5) { if (class17_8 == this.class17_7 && base.DockContainer != null && base.DockContainer.Manager != null) { DockControl[] array = new DockControl[base.Controls.Count]; base.Controls.CopyTo(array, 0); base.DockContainer.Manager.OnShowActiveFilesList(new ActiveFilesListEventArgs(array, base.DockContainer, new Point(this.class17_7.Bounds.X, this.class17_7.Bounds.Bottom))); } return; } this.method_25(); }
internal override void vmethod_7(DockButtonInfo class17_8) { if (class17_8 == this.class17_4 || class17_8 == this.class17_5) { this.method_26(); } }