Example #1
0
 private void Disable(object parameter)
 {
     CurrentSelected.IsEnable = false;
     QRCodeClient.UpdateSellerInformation(CurrentSelected);
     Sellers = QRCodeClient.GetSellerList();
     OnPropertyChanged(nameof(Sellers));
 }
Example #2
0
        public SellerListViewModel()
        {
            DisableCommand   = new DependencyCommand(Disable, DependencyCommand.AlwaysCan);
            RegetCommand     = new DependencyCommand(GetQRCode, DependencyCommand.AlwaysCan);
            GetOrdersCommand = new DependencyCommand(GetOrders, DependencyCommand.AlwaysCan);
            RefreshCommand   = new DependencyCommand(Refresh, DependencyCommand.AlwaysCan);

            if (JupiterClient.IsMA)
            {
                Sellers = QRCodeClient.GetSellerList();
            }
        }
Example #3
0
 private void Refresh(object parameter)
 {
     if (JupiterClient.IsMA)
     {
         Sellers = QRCodeClient.GetSellerList();
         OnPropertyChanged(nameof(Sellers));
     }
     else
     {
         System.Windows.MessageBox.Show("您不是管理员,不能查看其他分销员的信息", "查询失败", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }