private Lectura Vaciar() { Lectura lectura = new Lectura(); LecturaIdNumericUpDown.Value = 0; AutorTextBox.Clear(); TipoComboBox.SelectedIndex = -1; AbreviaturaTextBox.Clear(); return(lectura); }
private void OpenFileButton_Click(object sender, EventArgs e) { QuestionsTextBox.Clear(); AutorTextBox.Clear(); ObjectTextBox.Clear(); DynamicTextBox.Clear(); openFile.ShowDialog(); string path = openFile.FileName; parser.ParseFile(path); PrintObjects(parser.Objects); QuestionsTextBox.Text = parser.Questions; AutorTextBox.Text = parser.Autor; Go.Enabled = true; }