private void PopulateOpportunityStatusesQuickWin() { //current status bizActivity bizA = new bizActivity(); Status cs = bizA.GetStatusByName("Accepted"); this.lblOpportunityStatus.Text = cs.StatusName; //next status List <Status> ns = bizA.GetNextStatuses(cs.StatusID); this.lblNextActivity.Text = ""; foreach (Status s in ns) { this.lblNextActivity.Text += s.StatusName + ","; } char[] charsToTrim = { ',' }; this.lblNextActivity.Text = this.lblNextActivity.Text.TrimEnd(charsToTrim); }
private void PopulateOpportunityStatuses() { //current status bizActivity bizA = new bizActivity(); Status ins = bizA.GetInitialStatus(); this.ucMessanger1.ProcessMessages(bizA.MSGS, true); this.lblOpportunityStatus.Text = ins.StatusName; //next status List <Status> ns = bizA.GetNextStatuses(ins.StatusID); this.lblNextActivity.Text = ""; foreach (Status s in ns) { this.lblNextActivity.Text += s.StatusName + ","; } char[] charsToTrim = { ',' }; this.lblNextActivity.Text = this.lblNextActivity.Text.TrimEnd(charsToTrim); }