Example #1
0
 private void rightClick_Click(object sender, EventArgs e)
 {
     if (!this.timer_0.Enabled)
     {
         tpButton button = sender as tpButton;
         if (button.Name == "leftClick")
         {
             this.int_6 = this.int_0 - this.int_4;
             if (this.int_6 < 0)
             {
                 this.int_6 = 0;
             }
         }
         else if (button.Name == "rightClick")
         {
             this.int_6 = this.int_0 + this.int_4;
             if (this.int_6 > this.sortedDictionary_0.Count)
             {
                 this.int_6 = this.sortedDictionary_0.Count;
             }
         }
         this.int_7 = this.sortedDictionary_0[this.int_0].Location.X;
         this.int_8 = this.sortedDictionary_0[this.int_6].Location.X;
         this.timer_0.Start();
     }
 }
Example #2
0
 public AisinoToolBar()
 {
     this.int_2  = 0x48;
     this.int_3  = 10;
     this.int_4  = 5;
     this.int_5  = 15;
     this.bool_0 = true;
     this.method_0();
     base.SetStyle(ControlStyles.DoubleBuffer, true);
     base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     base.SetStyle(ControlStyles.UserPaint, true);
     base.SetStyle(ControlStyles.Selectable, true);
     base.SetStyle(ControlStyles.ContainerControl, true);
     base.Height             = 0x5c;
     this.sortedDictionary_0 = new SortedDictionary <int, ToolBarItem>();
     this.leftClick          = new tpButton();
     this.rightClick         = new tpButton();
     this.expandClick        = new tpButton();
     this.method_1();
 }