예제 #1
0
        private void ButtonLimpar_Click(object sender, EventArgs e)
        {
            try
            {
                textBoxTarefa.Clear();

                dateTimePickerInicio.Value   = DateTime.Now;
                numericUpDownTempoDias.Value = 1;

                dateTimePickerDiaAretirar.Value = DateTime.Now;

                checkBoxRetirarFinaisDeSemana.Checked = true;

                LimparGridDiasARetirar();

                richTextBoxTarefas.Clear();

                gerenciadorDiasARetirar = new GerenciadorDias();
                manipuladorDeTarefas    = new ManipuladorDeTarefas();

                textBoxTarefa.Focus();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     gerenciadorDiasARetirar = new GerenciadorDias();
     manipuladorDeTarefas    = new ManipuladorDeTarefas();
 }