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); } }
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; } } } }
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); }