Ejemplo n.º 1
0
 void UpdateTimerTick()
 {
     TableDock.SuspendLayout();
     for (int i = 0; i < ControlDock.Length; i++)
     {
         ControlDock[i].Refresh(i + 1);
     }
     TableDock.ResumeLayout();
 }
Ejemplo n.º 2
0
 void Updated(string apiname, dynamic data)
 {
     TableDock.SuspendLayout();
     for (int i = 0; i < ControlDock.Length; i++)
     {
         ControlDock[i].Update(i + 1);
     }
     TableDock.ResumeLayout();
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
        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();
            }
        }
Ejemplo n.º 5
0
        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]);
        }