private void OptionCleanToolStripMenuItem_Click(object sender, EventArgs e) { pdfFileName = string.Empty; ClearResults(); ConfigureForm(); YearComboBox.Focus(); }
private void ConfigureForm() { Text = rolId == 3 ? "Informe de ventas clientes externos" : "Informe de "; FilterGroupBox.Width = Width; YearComboBox.SelectedIndex = 0; YearRadioButton.Checked = true; MonthComboBox.SelectedIndex = DateTime.Now.Month - 1; SemesterComboBox.SelectedIndex = DateTime.Now.Month > 6 ? 1 : 0; DateDateTimePicker.Value = DateTime.Now.Date; RangeFromDateTimePicker.Value = DateTime.Now.Date; RangeToDateTimePicker.Value = DateTime.Now.Date.AddDays(1); EnableOrDisableControls(0); ClearResults(); YearComboBox.Focus(); }