示例#1
0
 void UpdatePreviewDisplay()
 {
     if (pointcount == 0)
     {
         PreviewArc.Visible = PreviewPie.Visible = false;
     }
     else
     {
         PreviewArc.IsLargeArc = PreviewPie.IsLargeArc = IsLargeArc;
         if (IsPie)
         {
             PreviewPie.IsDashed = false;
             PreviewPie.Visible  = true;
             PreviewArc.Visible  = false;
         }
         else
         {
             PreviewPie.IsDashed = true;
             PreviewPie.Visible  = true;
             PreviewArc.Visible  = true;
         }
         PreviewArc.Refresh();
         PreviewPie.Refresh();
     }
 }
示例#2
0
 void UpdatePreviewDisplay()
 {
     //GlobalUI.UI.AddStatusLine(this, "UPD");
     if (pointcount == 0)
     {
         PreviewArc.Visible = PreviewPie.Visible = false;
     }
     else
     {
         PreviewArc.IsLargeArc = PreviewPie.IsLargeArc = IsLargeArc;
         if (IsPie)
         {
             PreviewPie.IsDashed = false;
             PreviewPie.Visible  = true;
             PreviewArc.Visible  = false;
         }
         else
         {
             PreviewPie.IsDashed = true;
             PreviewPie.Visible  = true;
             PreviewArc.Visible  = true;
         }
         PreviewArc.Refresh();
         PreviewPie.Refresh();
     }
 }