private void MI14_Click(object sender, RoutedEventArgs e)
        {
            AddSKU asku = new AddSKU();

            this.Visibility = Visibility.Hidden;
            asku.ShowDialog();
            this.Visibility = Visibility.Visible;
        }
        private void MI15_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog();
            ofd.Filter = "CSV files (*.csv)|*.csv";
            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                List <SKU>     ls     = new List <SKU>();
                List <SkuAnot> lskuan = new List <SkuAnot>();
                string         content;
                using (StreamReader sr = new StreamReader(ofd.FileName))
                {
                    while ((content = sr.ReadLine()) != null)
                    {
                        string[] mas = content.Split(';');
                        SKU      s   = new SKU();
                        SkuAnot  sa  = new SkuAnot();

                        for (int i = 0; i < mas.Length; i++)
                        {
                            switch (i)
                            {
                            case 0: s.Name = mas[i]; break;

                            case 1: s.InputPrice = double.Parse(mas[i]); break;

                            case 2: if (mas[i] != string.Empty)
                                {
                                    s.Price = int.Parse(mas[i]);
                                }
                                else
                                {
                                    s.Price = 0;
                                }
                                break;

                            case 3: s.idComfy = mas[i]; break;

                            case 4: s.idRozetka = mas[i]; break;

                            case 5: s.idAllo = mas[i]; break;

                            case 6: s.idEldorado = mas[i]; break;

                            case 7: s.UrlHotline = mas[i]; break;

                            case 8: sa.Val1 = mas[i]; break;

                            case 9: sa.Val2 = mas[i]; break;

                            case 10: sa.Val3 = mas[i]; break;

                            case 11: sa.Val4 = mas[i]; break;

                            case 12: sa.Val5 = mas[i]; break;

                            case 13: sa.Val6 = mas[i]; break;

                            case 14: sa.Val7 = mas[i]; break;

                            case 15: sa.Val8 = mas[i]; break;

                            case 16: sa.Val9 = mas[i]; break;

                            case 17: sa.Val10 = mas[i]; break;

                            case 18: sa.Val11 = mas[i]; break;

                            case 19: sa.Val12 = mas[i]; break;
                            }
                        }
                        ls.Add(s);
                        lskuan.Add(sa);
                    }
                }
                int j = 0;
                foreach (SKU s in ls)
                {
                    AddSKU asku = new AddSKU(s, lskuan[j]);
                    this.Visibility = Visibility.Hidden;
                    asku.ShowDialog();
                    this.Visibility = Visibility.Visible;
                    j++;
                }
            }
        }
        private void BEdit_Click(object sender, RoutedEventArgs e)
        {
            AddSKU asku = new AddSKU(sku);

            asku.ShowDialog();
        }