/// <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(); }
/// <summary> /// Used when adding new account. /// </summary> public frmAccount(FrmAccountViewModel frmAccountViewModel) { _frmAccountViewModel = frmAccountViewModel; InitializeComponent(); }