void UpdateTimerTick() { TableDock.SuspendLayout(); for (int i = 0; i < ControlDock.Length; i++) { ControlDock[i].Refresh(i + 1); } TableDock.ResumeLayout(); }
void Updated(string apiname, dynamic data) { TableDock.SuspendLayout(); for (int i = 0; i < ControlDock.Length; i++) { ControlDock[i].Update(i + 1); } TableDock.ResumeLayout(); }
void Updated(string apiname, dynamic data) { TableDock.SuspendLayout(); TableDock.RowCount = KCDatabase.Instance.Docks.Values.Count(d => d.State != -1); for (int i = 0; i < ControlDock.Length; i++) { ControlDock[i].Update(i + 1); } TableDock.ResumeLayout(); }
void ConfigurationChanged() { Font = Utility.Configuration.Config.UI.MainFont; if (ControlDock != null) { TableDock.SuspendLayout(); foreach (var c in ControlDock) { c.ConfigurationChanged(this); } ControlHelper.SetTableRowStyles(TableDock, ControlHelper.GetDefaultRowStyle()); TableDock.ResumeLayout(); } }
public FormDock(FormMain parent) { InitializeComponent(); Utility.SystemEvents.UpdateTimerTick += UpdateTimerTick; ControlHelper.SetDoubleBuffered(TableDock); ConfigurationChanged(); TableDock.SuspendLayout(); ControlDock = new TableDockControl[4]; for (int i = 0; i < ControlDock.Length; i++) { ControlDock[i] = new TableDockControl(this, TableDock, i); } TableDock.ResumeLayout(); Icon = ResourceManager.ImageToIcon(ResourceManager.Instance.Icons.Images[(int)ResourceManager.IconContent.FormDock]); }