Ejemplo n.º 1
0
        void ButtonLeave(object sender, EventArgs e)
        {
            Button b = (Button)sender;

            if (!(ManagerMenu.verificarTamaño(b)))
            {
                b.Font = new Font("Ebrima", 16, FontStyle.Bold, GraphicsUnit.Pixel);
            }
        }
Ejemplo n.º 2
0
 void defecto()
 {
     foreach (Control c in panelMenu1.Controls)
     {
         if (c is Button)
         {
             Button b = (Button)c;
             if (ManagerMenu.verificarTamaño(b))
             {
                 b.Image     = ChangeColor((Bitmap)b.Image, false);
                 b.Font      = b.Font = new Font("Ebrima", 16, FontStyle.Bold, GraphicsUnit.Pixel);
                 b.ForeColor = Color.White;
             }
         }
     }
 }
Ejemplo n.º 3
0
        void color(object sender)
        {
            if (!(ManagerMenu.LastButton == null))
            {
                ManagerMenu.lastButton.Font = new Font("Ebrima", 16, FontStyle.Bold, GraphicsUnit.Pixel);
            }
            Button b = (Button)sender;

            b.ForeColor = Color.FromArgb(192, 255, 54);
            Bitmap bmp = null;

            //The Source Directory in debug\bin\Big\
            bmp     = (Bitmap)b.Image;
            bmp     = ChangeColor(bmp, true);
            b.Image = bmp;

            ManagerMenu.setLast(ref b);
        }