Beispiel #1
0
        public UserAdmin()
        {
            InitializeComponent();
            InitializeViewModel();
            InituserList();
            //InitmenuList();
            visa.CLEINT.ViewModel.UserAdminVM menuVM = new visa.CLEINT.ViewModel.UserAdminVM();
            MenuTree.DataContext = menuVM;
            MenuTree.ItemsSource = menuVM.MenuList;
            InitData();
            InitOtherMenu();

            LeftGrid.DataContext = userList;

            if (MainContext.UserCompanyName.ToUpper() != "ADMIN")
            {
                MenuTree.Visibility = Visibility.Hidden;
            }
        }
Beispiel #2
0
        public UserAdmin()
        {
            InitializeComponent();
            InitializeViewModel();
            InituserList();
            //InitmenuList();
            visa.CLEINT.ViewModel.UserAdminVM menuVM = new visa.CLEINT.ViewModel.UserAdminVM();
            MenuTree.DataContext = menuVM;
            MenuTree.ItemsSource = menuVM.MenuList;
            InitData();
            InitOtherMenu();

            LeftGrid.DataContext = userList;


            if (MainContext.UserCompanyName.ToUpper() != "ADMIN")
            {
                MenuTree.Visibility = Visibility.Hidden;
            }
        }