Example #1
0
        public SettingsWindowVM(IView view) : base()
        {
            this.view = view;

            _serializeUser = new SerializeUserToRegistry();

            SetAvatarForUI();
        }
Example #2
0
        public MainWindowVM(IView iView, IPasswordSupplier ipasswordSupplier) : base()
        {
            try
            {
                view             = iView;
                passwordSupplier = ipasswordSupplier;
                _serializeUser   = new SerializeUserToRegistry();

                IsLoginProgress = true;

                var userLogin = TryGetUser();

                if (!string.IsNullOrEmpty(userLogin))
                {
                    InitLogin(userLogin);
                }
                else
                {
                    IsLoginProgress = false;
                }

                //IsLoginProgress = false;
                IsRegisterProgress = false;

                IsSignUpVisible   = true;
                IsRegisterVisible = false;
            }
            catch (Exception)
            {
            }

            //IsLoginProgress = false;
            IsRegisterProgress = false;

            IsSignUpVisible   = true;
            IsRegisterVisible = false;
        }