private void botonApagar_Click(object sender, EventArgs e) { if (tiempo(horas.Value, minutos.Value, segundos.Value) == 0) { MessageBox.Show("Ingrese un tiempo mayor a 0", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { if (rbApagar.Checked == true) { ComandosCMD.ProgramarApagado(tiempo(horas.Value, minutos.Value, segundos.Value)); } else { ComandosCMD.ProgramarHibernar(tiempo(horas.Value, minutos.Value, segundos.Value)); } Close(); } }
private void botonCancelar_Click(object sender, EventArgs e) { ComandosCMD.CancelarApagado(); Close(); }