Example #1
0
        private void reloadData()
        {
            DiscountDataGrid.ItemsSource = null;
            VMs itemsource = new VMs();

            DiscountDataGrid.ItemsSource = itemsource.getViewModel();
        }
Example #2
0
        public DiscountUserControl1()
        {
            isManager = true;
            InitializeComponent();
            VMs itemsource = new VMs();

            DiscountDataGrid.ItemsSource = itemsource.getViewModel();
        }
Example #3
0
        public DiscountUserControl1(bool isManager)
        {
            this.isManager = isManager;
            InitializeComponent();
            VMs itemsource = new VMs();

            DiscountDataGrid.ItemsSource = itemsource.getViewModel();

            if (!isManager)
            {
                btnAdd.Visibility = Visibility.Hidden;
            }
        }