Exemplo n.º 1
0
        private void LoginPasswordCorrect(User user)
        {
            SelUser.GetInstance().SetSelUser(user);

            if (!_isLoad)
            {
                Closed += _elScreen.OnClose;
                _elScreen.Initialize(_logger);
                ScreenGrid.Children.Add(_elScreen);
                _elScreen.Visibility  = Visibility.Visible;
                _elScreen.LoginClick += Login;
                _elScreen.UserClick  += User;
                _isLoad = true;
            }
            EventsBase.GetInstance().GetControlEvents(OpcServer.OpcList.Rbu).AddEvent("Пользователь " + user.UserName + " вошел в программу", SystemEventType.Message);
            _elScreen.ViewModelScreenRbu.GetUserPermit();
            this.Show();
        }
Exemplo n.º 2
0
 public void GetUserPermit()
 {
     UserPermit    = SelUser.GetInstance().GetSelUser().PermitUser;
     SettingPermit = SelUser.GetInstance().GetSelUser().PermitSetting;
 }