C# Class LoginSample.ViewModels.LoginViewModel

Inheritance: ViewModelBase
Exibir arquivo Open project: WELL-E/LoginSample

Public Methods

Method Description
LoginViewModel ( System.Action closeAction ) : System

Private Methods

Method Description
GetUserInfoAsync ( IProgress progress, CancellationToken ct ) : Task

模拟从服务端获取用户信息

HideLoginResult ( ) : void

隐藏登录结果信息

ImplLogin ( IProgress progress, CancellationToken ct ) : Task

执行用户登录

ReportProgress ( int value ) : void

更新进度

ShowMainWindow ( ) : void

显示主窗体

UserLogging ( ) : void

用户登录

VerifyUserInfoLocal ( ) : bool

用户名和密码校验

Method Details

LoginViewModel() public method

public LoginViewModel ( System.Action closeAction ) : System
closeAction System.Action
return System