Exemplo n.º 1
0
 protected override void vmethod_3(BinaryWriter A_0)
 {
     foreach (Class539 class2 in this.arrayList_0)
     {
         Class341.smethod_0(class2.string_0, A_0);
         class2.method_0(A_0);
     }
 }
Exemplo n.º 2
0
 protected override void vmethod_3(BinaryWriter A_0)
 {
     using (StringEnumerator enumerator = this.stringCollection_0.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             Class341.smethod_0(enumerator.Current, A_0);
         }
     }
 }
Exemplo n.º 3
0
 protected override void vmethod_3(BinaryWriter A_0)
 {
     foreach (int num in this.arrayList_0)
     {
         Class341.smethod_0("", A_0);
         A_0.Write((short)0x100);
         A_0.Write(num);
         A_0.Write(-1);
     }
 }
Exemplo n.º 4
0
 // Token: 0x06001FB0 RID: 8112 RVA: 0x00068668 File Offset: 0x00066868
 public void method_2(PaintEventArgs e)
 {
     if (this.Bounds.smethod_2())
     {
         using (GraphicsPath graphicsPath = Class476.smethod_0(this.Bounds, 8, Enum48.flag_5))
         {
             using (LinearGradientBrush linearGradientBrush = this.Owner.method_2(this))
             {
                 e.Graphics.FillPath(linearGradientBrush, graphicsPath);
                 e.Graphics.SetClip(graphicsPath);
                 if (this.enum65_0 == Control4.Class311.Enum65.flag_1 || this.Selected)
                 {
                     using (GraphicsPath graphicsPath2 = Class341.smethod_0(this.Bounds.smethod_19().smethod_4(40, 40)))
                     {
                         using (PathGradientBrush pathGradientBrush = new PathGradientBrush(graphicsPath2))
                         {
                             if (this.enum65_0 == Control4.Class311.Enum65.flag_1)
                             {
                                 pathGradientBrush.CenterColor    = this.Owner.HoverRadialCenterColor;
                                 pathGradientBrush.SurroundColors = new Color[]
                                 {
                                     this.Owner.HoverRadialSurroundColor
                                 };
                             }
                             if (this.enum65_0.HasFlag(Control4.Class311.Enum65.flag_3))
                             {
                                 pathGradientBrush.CenterColor    = this.Owner.SelectedRadialCenterColor;
                                 pathGradientBrush.SurroundColors = new Color[]
                                 {
                                     this.Owner.SelectedRadialSurroundColor
                                 };
                             }
                             e.Graphics.FillPath(pathGradientBrush, graphicsPath2);
                         }
                     }
                 }
                 if (this.Icon != null)
                 {
                     e.Graphics.DrawImage(this.Icon, this.Icon.Size.smethod_22(this.Bounds.smethod_6(-2, -2)));
                 }
                 if (!string.IsNullOrEmpty(this.string_0) && this.TextFont != null)
                 {
                     using (SolidBrush solidBrush = new SolidBrush(this.ForeColor))
                     {
                         using (StringFormat stringFormat = new StringFormat())
                         {
                             stringFormat.Alignment     = StringAlignment.Center;
                             stringFormat.LineAlignment = StringAlignment.Center;
                             e.Graphics.DrawString(this.string_0, this.TextFont, solidBrush, this.Bounds, stringFormat);
                         }
                     }
                 }
                 if (this.interface20_0 != null)
                 {
                     this.interface20_0.imethod_0(new EventArgs34(e.Graphics, this.Bounds));
                 }
                 e.Graphics.ResetClip();
             }
             using (Pen pen = new Pen(this.Owner.ButtonOutline, 1f))
             {
                 e.Graphics.DrawPath(pen, graphicsPath);
             }
         }
     }
 }