private void BtnGravar_Click(object sender, EventArgs e)
        {
            VerificarBLL.NovoProgramaAquecimento(TxtNomeProgramaNovo.Text,
                                                 MtbTempoNovo.Text.Remove(2, 1),
                                                 MtbPotenciaNovo.Text,
                                                 TxtInstrucoesNovo.Text,
                                                 TxtCaractereNovo.Text);

            CmbProgramaAquecimento.DataSource    = null;
            CmbProgramaAquecimento.DataSource    = VerificarBLL.ProgramaAquecimento;
            CmbProgramaAquecimento.DisplayMember = "Nome";
            CmbProgramaAquecimento.SelectedIndex = -1;

            TxtNomeProgramaNovo.ResetText();
            MtbTempoNovo.ResetText();
            MtbPotenciaNovo.ResetText();
            TxtInstrucoesNovo.ResetText();
            TxtCaractereNovo.ResetText();

            TxtNomeProgramaNovo.Enabled = false;
            MtbTempoNovo.Enabled        = false;
            MtbPotenciaNovo.Enabled     = false;
            TxtInstrucoesNovo.Enabled   = false;
            TxtCaractereNovo.Enabled    = false;
            BtnNovoPrograma.Enabled     = true;
            BtnGravarPrograma.Enabled   = false;
            this.Size = new Size(445, 345);
        }
        private void BtnNovoPrograma_Click(object sender, EventArgs e)
        {
            TxtNomeProgramaNovo.ResetText();
            MtbTempoNovo.ResetText();
            MtbPotenciaNovo.ResetText();
            TxtInstrucoesNovo.ResetText();
            TxtCaractereNovo.ResetText();

            TxtNomeProgramaNovo.Enabled = true;
            MtbTempoNovo.Enabled        = true;
            MtbPotenciaNovo.Enabled     = true;
            TxtInstrucoesNovo.Enabled   = true;
            TxtCaractereNovo.Enabled    = true;
            BtnNovoPrograma.Enabled     = false;
            BtnGravarPrograma.Enabled   = true;
            TxtNomeProgramaNovo.Focus();
        }