CMTest.ViewModels.LoginViewModel.Login C# (CSharp) Method

Login() public method

public Login ( ) : void
return void
        public void Login()
        {
            //var u = this.CN.GetInstance<UserInfoViewModel>();

            //如果不在 App.cs 中显示注册为 PerRequest 或者 Singleton,
            //以下代码不会实例 UserInfoViewModel, 只是把它对应的 View 给实例出来。
            this.NS.For<UserInfoViewModel>()
                .WithParam(v => v.Account, this.Account)
                .WithParam(v => v.LoginedOn, DateTime.Now)
                .Navigate();
        }