/// <summary> /// This method formats the data from a file whose name user enters in the textbox /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void openfile_Click(object sender, RoutedEventArgs e) { output.Clear(); ParseLine.SplitInput(point_list, File.ReadAllText(filename.Text)); foreach (Point point in point_list) { output.AppendText(point.ToString()); } }
/// <summary> /// This method formats the data entered by the user in the textbox /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void format_Click(object sender, RoutedEventArgs e) { output.Clear(); ParseLine.SplitInput(point_list, input.Text); foreach (Point point in point_list) { output.AppendText(point.ToString()); } input.Clear(); }