static void Main(string[] args) { LabLogic executer = new LabLogic(); string path = executer.GetStringPath(); List <string[]> formatedCoordinates = executer.GetDataFromFile(path); executer.ShowFormatedData(formatedCoordinates); }
/// <summary> /// Open File with tested data and output it in TextBox /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OpenFileButton_Click(object sender, RoutedEventArgs e) { string path = _executer.GetStringPath(); List<string[]> formatedCoordinates = _executer.GetDataFromFile(path); if (_executer.FileIsChosen) OutputTextBox.Clear(); foreach (var line in formatedCoordinates) { OutputTextBox.Text += $"X:{line[0]} Y:{line[1]}\n"; } }
private void OpenFileButton_Click(object sender, RoutedEventArgs e) { OutputTextBox.Text.Trim(); _path = _executer.GetStringPath(); List <string> formatedCoordinates = _executer.GetDataFromFile(_path); if (_executer.FileIsChosen) { OutputTextBox.IsEnabled = true; OutputTextBox.Clear(); foreach (var line in formatedCoordinates) { OutputTextBox.Text += $"{line}\n"; } } }