public ArticlesForShoping(StarWindow window)
        {
            InitializeComponent();
            startWindow = window;
            products = window.GetProducts;

            dbArticles.DataContext = products.GetProducts;
            dbArticles.ItemsSource = products.GetArticlesPlaced();
        }
 public PlaceWindow(StarWindow startWindow)
 {
     InitializeComponent();
     brushcolor = AllArticles.BorderBrush;
     //zdarzena obslugujace dodawanie elementow do list
     ((INotifyCollectionChanged) lbDesk1.Items).CollectionChanged += lbDesk1_CollectionChanged;
     ((INotifyCollectionChanged)lbDesk2.Items).CollectionChanged += lbDesk2_CollectionChanged;
     ((INotifyCollectionChanged)lbDesk3.Items).CollectionChanged += lbDesk3_CollectionChanged;
     ((INotifyCollectionChanged)lbDesk4.Items).CollectionChanged += lbDesk4_CollectionChanged;
     this.startWindow = startWindow;
     articleDragDrop=startWindow.DataRepoAll.MyDragDropData;
     DataContext = articleDragDrop;
 }
        // private ArticlesRepository myArticlesRepository;
        public MainWindow(StarWindow window)
        {
            InitializeComponent();
            // nie lubie definiowac funkcji obslugi zdarzen w xamlu.
            // this.MouseLeftButtonDown += WindowMouseLeftButtonDown;
            //  this.MouseLeftButtonUp += WindowMouseLeftButtonUp;
            //  this.MouseMove += WindowMouseMove;
            startWindow = window;
            //myArticlesRepository=new ArticlesRepository();
            double topCorner = 0;
            double leftCorner = 0;

            KeyDown += WindowKeyDown;

            //SetProductLayout(topCorner);
            SetArticlesLayout(topCorner);
            SetClient();
            myBasket = new Basket();
            BasketShoping.ItemsSource = myBasket.JustShoped;
            if (!client.IsCalculate) SumCoast.Visibility = Visibility.Collapsed;
            if (!client.IsShowList) ArticleShoping.Visibility = Visibility.Collapsed;
        }