public AuditLogForm(AuditLog log, string browserExe)
 {
     InitializeComponent();
     Log = log;
     BrowserExe = browserExe.Trim();
     this.dataGridView1.DataSource = log.Records;
     NoteSize();
 }
Beispiel #2
0
 protected internal static AuditLog Load()
 {
     AuditLog log = null;
     if (File.Exists(AuditLog.StoragePath))
     {
         var ser = new XmlSerializer(typeof(AuditLog));
         using (var fs = new FileStream(AuditLog.StoragePath, FileMode.Open))
         {
             log = (AuditLog) ser.Deserialize(fs);
         }
     }
     else
     {
         log = new AuditLog();
     }
     return log;
 }