private void Button_Click(object sender, RoutedEventArgs e)
        {
            var saveOrders = DatesHelper.SaveOrderView((List <OrderViewModel>)OrderEditor.ItemsSource);

            if (saveOrders)
            {
                OrderEditor.ItemsSource = DatesHelper.GetOrdersView();
            }
            else
            {
                MessageBox.Show("Update Error");
                OrderEditor.ItemsSource = DatesHelper.GetOrdersView();
            }
        }
 public MainWindow()
 {
     InitializeComponent();
     OrderEditor.ItemsSource = DatesHelper.GetOrdersView();
 }