public override void OnDraw(Graphics2D graphics2D)
 {
     if (!hookedParentKeyDown)
     {
         Parent.Parent.Parent.KeyDown += new KeyEventHandler(Parent_KeyDown);
         hookedParentKeyDown           = true;
     }
     if (partToStartLoadingOnFirstDraw != null)
     {
         gcodeViewWidget.LoadInBackground(partToStartLoadingOnFirstDraw);
         partToStartLoadingOnFirstDraw = null;
     }
     base.OnDraw(graphics2D);
 }
Beispiel #2
0
 public override void OnDraw(Graphics2D graphics2D)
 {
     if (!hookedParentKeyDown)
     {
         GuiWidget parent = Parent;
         while (parent as SystemWindow == null)
         {
             parent = parent.Parent;
         }
         parent.KeyDown     += Parent_KeyDown;
         hookedParentKeyDown = true;
     }
     if (partToStartLoadingOnFirstDraw != null)
     {
         gcodeViewWidget.LoadInBackground(partToStartLoadingOnFirstDraw);
         partToStartLoadingOnFirstDraw = null;
     }
     base.OnDraw(graphics2D);
 }