コード例 #1
0
 public CuUserPage(CommonDef.CuUserPageType cuUserPageType)
 {
     InitializeComponent();
     this.cuUserPageType = cuUserPageType;
     SetView();
     BindingContext = viewModel = new CuUserViewModel(cuUserPageType);
 }
コード例 #2
0
ファイル: CuUserViewModel.cs プロジェクト: k-toshi/Beers
 public CuUserViewModel(CommonDef.CuUserPageType cuUserPageType)
 {
     NewUser = new User();
     if (cuUserPageType == CommonDef.CuUserPageType.Change)
     {
         NewUser = UserController.LoginUser;
     }
     this.cuUserPageType = cuUserPageType;
     CuUserCommand       = new Command(async() => await ExecuteCuUserCommand());
 }