コード例 #1
0
 public AuditLogForm(AuditLog log, string browserExe)
 {
     InitializeComponent();
     Log = log;
     BrowserExe = browserExe.Trim();
     this.dataGridView1.DataSource = log.Records;
     NoteSize();
 }
コード例 #2
0
ファイル: AuditLog.cs プロジェクト: neoKushan/CleanModQueue
 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;
 }