Esempio n. 1
0
 private void method_1(PiePiece piePiece_0, string string_0, double double_6)
 {
     if (piePiece_0.method_6() >= 6.0)
     {
         string            text = string_0;
         TextOnPathElement textOnPathElement;
         double            num3;
         while (true)
         {
             textOnPathElement = new TextOnPathElement
             {
                 Text             = text,
                 IsHitTestVisible = false,
                 FontWeight       = FontWeights.Bold
             };
             double num  = textOnPathElement.TextLength * 1.5;
             double num2 = (this.double_5 + this.double_4 / 2.0) * 2.0 * 3.1415;
             num3 = num * 360.0 / num2;
             if (num3 + 1.5 <= piePiece_0.method_6() || text.Length <= 1)
             {
                 break;
             }
             text = text.Substring(0, text.Length - 1);
         }
         double num4 = piePiece_0.method_8() + piePiece_0.method_6() / 2.0;
         bool   flag = false;
         if (num4 > 90.0 && num4 < 270.0)
         {
             flag = true;
         }
         if (flag)
         {
             textOnPathElement.PathFigure = piePiece_0.method_20(this.double_3, num3);
         }
         else
         {
             textOnPathElement.PathFigure = piePiece_0.method_19(this.double_3, num3);
         }
         this.canvas_0.Children.Add(textOnPathElement);
         Panel.SetZIndex(textOnPathElement, 15);
     }
 }
Esempio n. 2
0
		private void method_1(PiePiece piePiece_0, string string_0, double double_6)
		{
			if (piePiece_0.method_6() >= 6.0)
			{
				string text = string_0;
				TextOnPathElement textOnPathElement;
				double num3;
				while (true)
				{
					textOnPathElement = new TextOnPathElement
					{
						Text = text,
						IsHitTestVisible = false,
						FontWeight = FontWeights.Bold
					};
					double num = textOnPathElement.TextLength * 1.5;
					double num2 = (this.double_5 + this.double_4 / 2.0) * 2.0 * 3.1415;
					num3 = num * 360.0 / num2;
					if (num3 + 1.5 <= piePiece_0.method_6() || text.Length <= 1)
					{
						break;
					}
					text = text.Substring(0, text.Length - 1);
				}
				double num4 = piePiece_0.method_8() + piePiece_0.method_6() / 2.0;
				bool flag = false;
				if (num4 > 90.0 && num4 < 270.0)
				{
					flag = true;
				}
				if (flag)
				{
					textOnPathElement.PathFigure = piePiece_0.method_20(this.double_3, num3);
				}
				else
				{
					textOnPathElement.PathFigure = piePiece_0.method_19(this.double_3, num3);
				}
				this.canvas_0.Children.Add(textOnPathElement);
				Panel.SetZIndex(textOnPathElement, 15);
			}
		}