Example #1
0
        // Constructor
        public LoginPageModel()
        {
			// Create commands
            LoginCommand = new SimpleRelayCommand(Login);
            LoginCommand.CanExecuteDelegate = x =>
                this.Password != null && this.Password != "" && this.Username != null && this.Username != "";

            // Auto-login if we can
            if(Username != null && Password != null)
            {
                Login(this);
            }
        }
Example #2
0
        // Constructor
        public LoginPageModel()
        {
            // Create commands
            LoginCommand = new SimpleRelayCommand(Login);
            LoginCommand.CanExecuteDelegate = x =>
                                              this.Password != null && this.Password != "" && this.Username != null && this.Username != "";

            // Auto-login if we can
            if (Username != null && Password != null)
            {
                Login(this);
            }
        }
Example #3
0
 public RankingPageModel()
 {
     // Create commands
     LogoutCommand = new SimpleRelayCommand(Logout);
 }