public ExhibitViewModel() { UserInformation user = (UserInformation)App.Current.Properties["userinfo"]; userinformation = user; exhit = new ExhitbitMaster(); this.ExhitbitDocs = exhit.getExhibitDocuments(); this.clearExhibitCommand = new DelegateCommand(this.ClearExhibit); this.updateExhibitCommand = new DelegateCommand(this.UpdateExhibit); }
public ExhibitViewModel(UserInformation userInformation) { UserInformation user = (UserInformation)App.Current.Properties["userinfo"]; userinformation = user; exhit = new ExhitbitMaster(userinformation); // this.ExhitbitDocs = exhit.getExhibitDocuments(); this.DtDataview = exhit.GetExhibitMaster(); LoadFormData(); this.clearExhibitCommand = new DelegateCommand(this.ClearExhibit); this.updateExhibitCommand = new DelegateCommand(this.UpdateExhibit); this.selectChangeComboCommand = new DelegateCommand(this.SelectDataRow); ExhibitDetails = ""; ExhibitNumber = ""; }