private void PrintPrice_Click(object sender, RoutedEventArgs e)
        {
            MyGridMainMenu s  = DGS.SelectedItem as MyGridMainMenu;
            MContext       mc = new MContext();
            PrintPrice     pp = new PrintPrice(mc.SKUs.First(x => x.ID == s.ID), true);

            pp.ShowDialog();
        }
Exemple #2
0
        private void Print_Click(object sender, RoutedEventArgs e)
        {
            int count = 0;

            foreach (MyTableGrid s in MyGrid.SelectedItems)
            {
                MContext   mc  = new MContext();
                List <SKU> tmp = mc.SKUs.Where(x => x.ID == s.ID).ToList();
                PrintPrice pp  = new PrintPrice(tmp[0]);
                pp.ShowDialog();
                count++;
                if ((count + 1) == MyGrid.SelectedItems.Count)
                {
                    break;
                }
            }
        }
        private void BPrint_Click(object sender, RoutedEventArgs e)
        {
            PrintPrice pp = new PrintPrice(sku, true);

            pp.ShowDialog();
        }