public PersonalizationViewModel()
        {
            _dialogs = new DialogObjects();
            _dialogs.SetViewModel(this);

            _service = new PersonalizationService();

            AccentCmd = new DelegateCommand <string>(OnSetAccent);
            ThemeCmd  = new DelegateCommand <string>(OnSetTheme);
        }
        public MainWindowViewModel()
        {
            _dialogs = new DialogObjects();
            _dialogs.SetViewModel(this);

            MenuCmd = new DelegateCommand <string>(OnMenu);

            MainWindowTitle = "Hotel Management";

            var a = ConfigurationManager.GetSection("ApplicationTitle").ToSafeString();
        }
Ejemplo n.º 3
0
        public ChangePasswordViewModel()
        {
            _dialogs = new DialogObjects();
            _dialogs.SetViewModel(this);

            _service = new ChangePasswordsService();

            SaveCmd = new DelegateCommand(OnSave);

            SaveReq = new SetPassword();

            CurrentPassword = string.Empty;
            NewPassword     = string.Empty;
            ConfirmPassword = string.Empty;
        }
        public PermissionsViewModel()
        {
            _dialogs = new DialogObjects();
            _dialogs.SetViewModel(this);

            _service = new PermissionsService();

            SearchCmd = new DelegateCommand(OnSearchUser);
            MenuCmd   = new DelegateCommand(OnSetUserPermissions);

            GetPermissionsReq = new GetPermissions();
            SetPermissionsReq = new SetPermission();

            SearchUser       = string.Empty;
            SearchPermission = string.Empty;
        }
        public LogonViewModel()
        {
            _dialogs = new DialogObjects();
            _dialogs.SetViewModel(this);

            _service = new LogonService();

            IsLoading(false);

            LogonCmd = new DelegateCommand(OnLogon);

            LogonReq = new AuthLogin();

            UserName = string.Empty;
            Password = string.Empty;

            var b = App.Current.Properties["LoginUser"];
        }