using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace Lab { /// /// Interaction logic for ArrayReverseWindow.xaml /// public partial class ArrayReverseWindow : Window { private void ClickBack(object sender, RoutedEventArgs e) => Close(); private void ClickClear(object sender, RoutedEventArgs e) { ArrayInBox.Clear(); ArrayOutBox.Clear(); ArrayInfoText.Text = ""; } private void ClickReverse(object sender, RoutedEventArgs e) { ArrayOutBox.Clear(); ArrayInfoText.Text = ""; if (!Parsers.TryParseDoubleArray(ArrayInBox.Text, out double[] vals, out string err)) { ArrayInfoText.Text = err; return; } for(int i=0,j=vals.Length-1;i