public LocationMasterViewModel() { UserInformation user = (UserInformation)App.Current.Properties["userinfo"]; userinformation = user; oLocMaster = new LocationMasterBll(userinformation); DtDataview = oLocMaster.GetLocationMaster(); this.selectChangeComboCommand = new DelegateCommand(this.SelectDataRow); this.addClickCommand = new DelegateCommand(this.AddSubmitCommand); this.editClickCommand = new DelegateCommand(this.EditSubmitCommand); this.updateLocCommand = new DelegateCommand(this.CommonFormValUpdtae); this.deleteClickCommand = new DelegateCommand(this.DeleteSubmitCommand); }
public LocationMasterViewModel() { UserInformation user = (UserInformation)App.Current.Properties["userinfo"]; userinformation = user; oLocMaster = new LocationMasterBll(userinformation); DtDataview = oLocMaster.GetLocationMaster(); this.selectChangeComboCommand = new DelegateCommand(this.SelectDataRow); this.addClickCommand = new DelegateCommand(this.AddSubmitCommand); this.editClickCommand = new DelegateCommand(this.EditSubmitCommand); this.updateLocCommand = new DelegateCommand(this.CommonFormValUpdtae); this.deleteClickCommand = new DelegateCommand(this.DeleteSubmitCommand); UserRoleObjName = "LOCATION MASTER"; ComboBoxMaxLength = 2; ActionPermission = oLocMaster.GetUserRights(UserRoleObjName); SetdropDownItems(); FormLoadRights(); }