private void buttonForAddNewZakaz_Click(object sender, RoutedEventArgs e)
        {
            WindowForAddNewZakaz WindowForAddNewZakaz = new WindowForAddNewZakaz();

            if (WindowForAddNewZakaz.ShowDialog() == true)
            {
                MessageBox.Show("Заказ успешно добавлен");
                dataGrid1.ItemsSource = db.selectZakaz();
            }
        }
        private void MenuItem_Click_2(object sender, RoutedEventArgs e)
        {
            DataGridZakaz        current = dataGrid1.SelectedItem as DataGridZakaz;;
            WindowForAddNewZakaz WindowForAddNewZakaz = new WindowForAddNewZakaz(current.id);

            if (WindowForAddNewZakaz.ShowDialog() == true)
            {
                MessageBox.Show("Заказ успешно изменен");
                dataGrid1.ItemsSource = db.selectZakaz();
            }
        }
        private void MenuItem_Click_4(object sender, RoutedEventArgs e)
        {
            DataGrid current = dataGrid.SelectedItem as DataGrid;

            if (current.nalichi1)
            {
                WindowForAddNewZakaz addNewZakaz = new WindowForAddNewZakaz(current.id, current.name, current.size, current.color, current.articulPost, current.arrayByteImgTovara);
                addNewZakaz.Show();
            }
            else
            {
                MessageBox.Show("Товара нет в наличии");
            }
        }