Beispiel #1
0
 public /* Interface KGuiControl */ void GuiDeviceUpdate()
 {
     if (!DeviceSKControl.Exists())
     {
         return;
     }
     if (!this.InvokeRequired)
     {
         if (!DeviceSKControl.IsVisible())   //### or WinControls.IsMicrofluidicsVisible() ????
         {
             WinGui.winGui.winControls.onOffDeviceView.Selected(!WinGui.winGui.winControls.onOffDeviceView.IsSelected());
             return;
         }
         DeviceSKControl.SetSize(WinGui.winGui.panel_Microfluidics.Size);
         DeviceSKControl.InvalidateAndUpdate();
     }
     else
     {
         this.Invoke((Action) delegate { GuiDeviceUpdate(); });
     }
 }
Beispiel #2
0
        /* SIZE CHANGED */

        private void panel_Microfluidics_SizeChanged(object sender, EventArgs e)
        {
            DeviceSKControl.SetSize(this.panel_Microfluidics.Size);
        }
Beispiel #3
0
        private static DeviceSKControl deviceControl = null; // The only DeviceSKControl, same as "this", but accessible from static methods

        public DeviceSKControl() : base()
        {
            deviceControl          = this;
            deviceControl.Location = new System.Drawing.Point(0, 0);
        }
Beispiel #4
0
 public void MicrofluidicsOn()
 {
     DeviceSKControl.SetSize(WinGui.winGui.panel_Microfluidics.Size);
     WinGui.winGui.panel_Microfluidics.BringToFront();
     WinGui.winGui.panel_Microfluidics.Visible = true;
 }