/// <summary> /// Import a Report to the Study. /// </summary> internal void ImportReport(ejpReport report) { if (this._reports.Count == 2) { throw new Exception(Application.Current.Resources["EX_ReportCount"] as string); //Properties.Resources.EX_ReportCount); } this._reports.Add(report); }
/// <summary> /// Import a Report to the Study. /// </summary> internal void ImportReport(ejpReport report) { if (this._reportsNV.Count == 2 || this._reports.Count == 2 || (this._reportsNV.Count + this._reports.Count) == 2) { throw new Exception("No more than 2 Reports are allowed."); } this._reports.Add(report); }
/// <summary> /// Adds a new Report to the study. /// </summary> /// <returns>The new Report</returns> public ejpReport AddReport() { if (this._reports.Count == 2) { throw new Exception(Application.Current.Resources["EX_ReportCount"].ToString()); //Properties.Resources.EX_ReportCount); } ejpReport r = new ejpReport(this._metaData.Id); this._reports.Add(r); return(r); }
/// <summary> /// Adds a new Report to the study. /// </summary> /// <returns>The new Report</returns> public ejpReport AddReport() { if (this._reports.Count == 2) { throw new Exception("No more than 2 Reports are allowed."); } ejpReport r = new ejpReport(this._metaData.Id); this._reports.Add(r); return(r); }