Ignore:
Timestamp:
12/23/09 06:51:24 (5 years ago)
Author:
lowjoel
Message:

Allow reports to be deleted. Also allow the Path to the report be discovered so users can navigate to the report contents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/BlackBox/Eraser.Util/BlackBox.cs

    r1417 r1422  
    510510 
    511511        /// <summary> 
     512        /// Deletes the report and its contents. 
     513        /// </summary> 
     514        public void Delete() 
     515        { 
     516            Directory.Delete(Path, true); 
     517        } 
     518 
     519        /// <summary> 
    512520        /// The name of the report. 
    513521        /// </summary> 
     
    518526                return System.IO.Path.GetFileName(Path); 
    519527            } 
     528        } 
     529 
     530        /// <summary> 
     531        /// The path to the folder containing the report. 
     532        /// </summary> 
     533        public string Path 
     534        { 
     535            get; 
     536            private set; 
    520537        } 
    521538 
     
    594611 
    595612        /// <summary> 
    596         /// The path to the folder containing the report. 
    597         /// </summary> 
    598         private string Path; 
    599  
    600         /// <summary> 
    601613        /// The backing variable for the <see cref="StackTrace"/> field. 
    602614        /// </summary> 
Note: See TracChangeset for help on using the changeset viewer.