示例#1
0
 protected override void OnDraw(EventArgs args)
 {
     if (!MenuValue.Drawings.EnableDraw)
     {
         return;
     }
     if (MenuValue.Drawings.DrawQ && (!MenuValue.Drawings.ReadyQ || Q.IsReady()))
     {
         Q.DrawRange(MenuValue.Drawings.ColorQ);
     }
     if (MenuValue.Drawings.DrawW && (!MenuValue.Drawings.ReadyW || W.IsReady()))
     {
         W.DrawRange(MenuValue.Drawings.ColorW);
     }
     if (MenuValue.Drawings.DrawE && (!MenuValue.Drawings.ReadyE || E.IsReady()))
     {
         E.DrawRange(MenuValue.Drawings.ColorE);
         E1.DrawRange(MenuValue.Drawings.ColorE);
     }
     if (MenuValue.Drawings.DrawR && (!MenuValue.Drawings.ReadyR || R.IsReady()))
     {
         R.DrawRange(MenuValue.Drawings.ColorR);
     }
 }