Beispiel #1
0
 internal Report Clone() {
     var res = new Report();
     res.Filename = Filename;
     return res;
 }
Beispiel #2
0
        public void AddProfile(string filename) {
            if (_target.Reports == null) {
                _target.Reports = new Reports(new[] { new Report(filename) });
            } else {
                if (_target.Reports.Report == null) {
                    _target.Reports.Report = new Report[0];
                }

                uint prevSibling, newId;
                if (Reports.Count > 0) {
                    prevSibling = (uint)Reports.Last().Key;
                    newId = prevSibling + 1;
                } else {
                    prevSibling = VSConstants.VSITEMID_NIL;
                    newId = StartingReportId;
                }

                Reports[newId] = new Report(filename);

                OnItemAdded(
                    ReportsItemId,
                    prevSibling,
                    newId
                );
            }

            MarkDirty();
        }
Beispiel #3
0
 internal ReportWrapper(Report report) {
     _report = report;
 }