示例#1
0
 private void SetButton(System.Windows.Forms.TabPage Page)
 {
     try
     {
         foreach (object Controls in Page.Controls)
         {
             if (Controls.GetType().ToString() == "ReaLTaiizor.Controls.HopeButton")
             {
                 HopeButton Control = Controls as HopeButton;
                 if (Control.Name == AT)
                 {
                     Control.PrimaryColor = System.Drawing.Color.FromArgb(35, 35, 38);
                 }
                 else
                 {
                     Control.PrimaryColor = System.Drawing.Color.FromArgb(45, 45, 48);
                 }
             }
         }
     }
     catch
     {
         //
     }
 }
示例#2
0
 private new void Click(object sender, EventArgs e)
 {
     try
     {
         HopeButton Button = sender as HopeButton;
         if (AT != Button.Name)
         {
             AT = Button.Name;
             SetControl(AT);
         }
     }
     catch
     {
         //
     }
 }