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

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

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

            DiscountDataGrid.ItemsSource = itemsource.getViewModel();

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