コード例 #1
0
 /// <summary>
 /// Used when viewing/updating existing account.
 /// </summary>
 /// <param name="clientId"></param>
 public frmAccount(FrmAccountViewModel frmAccountViewModel, int accountId)
 {
     _frmAccountViewModel = frmAccountViewModel;
     _frmAccountViewModel.GetAccountById(accountId);
     _frmAccountViewModel.IsEdit = true;
     InitializeComponent();
     InitForEdit();
 }
コード例 #2
0
 /// <summary>
 /// Used when adding new account.
 /// </summary>
 public frmAccount(FrmAccountViewModel frmAccountViewModel)
 {
     _frmAccountViewModel = frmAccountViewModel;
     InitializeComponent();
 }