コード例 #1
0
 /// <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);
 }
コード例 #2
0
ファイル: ejpStudy.cs プロジェクト: shiniwat/ejournalplus
        /// <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);
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
ファイル: ejpStudy.cs プロジェクト: shiniwat/ejournalplus
        /// <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);
        }