public int GetRoi(string SID, string imagekey, Point p1, Point p2, out RoiItem roi) { using (new DebugLog()) { return(sv.GetRoi(SID, imagekey, p1, p2, out roi)); } }
public ROIViewModel() { this.project = (ProjectData)App.Current.Resources["ProjectData"]; this.roiItems = new ObservableCollection <RoiItem>(); this.roiItems.Add( new RoiItem(this.project.PeriodUnit + " 0", invest: this.project.TotalInvestment)); for (int i = 0; i < this.project.AnalysisPeriod; i++) { this.roiItems.Add( new RoiItem(this.project.PeriodUnit + " " + (i + 1), this.project.TotalExpenses, this.project.TotalIncomes)); } this.totals = new RoiItem(); this.calcTotals(); }