public static void ActualizarBotones() { for (int i = 0; i < plazas.Count; i++) { Plaza p = ((Plaza)plazas[i]); if (p.isGuardada) { ((System.Windows.Forms.Button)botonesTPV[i]).Visible = false; } else if (p.isJuntada) { ((System.Windows.Forms.Button)botonesTPV[i]).Visible = true; ((System.Windows.Forms.Button)botonesTPV[i]).BackColor = System.Drawing.Color.Gray; } else if (p.isActiva) { ((System.Windows.Forms.Button)botonesTPV[i]).Visible = true; if (p.isTerminada()) { ((System.Windows.Forms.Button)botonesTPV[i]).BackColor = System.Drawing.Color.OrangeRed; } else if (p.isTicada()) { ((System.Windows.Forms.Button)botonesTPV[i]).BackColor = System.Drawing.Color.Yellow; } else if (p.isOcupada()) { ((System.Windows.Forms.Button)botonesTPV[i]).BackColor = System.Drawing.Color.SlateBlue; } else { ((System.Windows.Forms.Button)botonesTPV[i]).BackColor = System.Drawing.Color.Lime; } } } }