private void method1(PiePiece piePiece, string str, double double6)
        {
            if (piePiece.method6() >= 6.0)
            {
                string            text = str;
                TextOnPathElement textOnPathElement;
                double            num3;

                while (true)
                {
                    textOnPathElement = new TextOnPathElement
                    {
                        Text             = text,
                        IsHitTestVisible = false,
                        FontWeight       = FontWeights.Bold
                    };

                    double num  = textOnPathElement.TextLength * 1.5;
                    double num2 = (double5 + double4 / 2.0) * 2.0 * 3.1415;
                    num3 = num * 360.0 / num2;

                    if (num3 + 1.5 <= piePiece.method6() || text.Length <= 1)
                    {
                        break;
                    }

                    text = text.Substring(0, text.Length - 1);
                }

                double num4 = piePiece.method8() + piePiece.method6() / 2.0;
                bool   flag = false;

                if (num4 > 90.0 && num4 < 270.0)
                {
                    flag = true;
                }

                if (flag)
                {
                    textOnPathElement.PathFigure = piePiece.method20(double3, num3);
                }
                else
                {
                    textOnPathElement.PathFigure = piePiece.method19(double3, num3);
                }

                canvas.Children.Add(textOnPathElement);
                Panel.SetZIndex(textOnPathElement, 15);
            }
        }
		private void method1(PiePiece piePiece, string str, double double6)
		{
			if (piePiece.method6() >= 6.0)
			{
				string text = str;
				TextOnPathElement textOnPathElement;
				double num3;

				while (true)
				{
					textOnPathElement = new TextOnPathElement
					{
						Text = text,
						IsHitTestVisible = false,
						FontWeight = FontWeights.Bold
					};

					double num = textOnPathElement.TextLength * 1.5;
					double num2 = (double5 + double4 / 2.0) * 2.0 * 3.1415;
					num3 = num * 360.0 / num2;

					if (num3 + 1.5 <= piePiece.method6() || text.Length <= 1)
					{
						break;
					}

					text = text.Substring(0, text.Length - 1);
				}

				double num4 = piePiece.method8() + piePiece.method6() / 2.0;
				bool flag = false;

				if (num4 > 90.0 && num4 < 270.0)
				{
					flag = true;
				}

				if (flag)
				{
					textOnPathElement.PathFigure = piePiece.method20(double3, num3);
				}
				else
				{
					textOnPathElement.PathFigure = piePiece.method19(double3, num3);
				}

				canvas.Children.Add(textOnPathElement);
				Panel.SetZIndex(textOnPathElement, 15);
			}
		}