Exemplo n.º 1
0
 public void CheckAutosave()
 {
     // file is modified, isn't updated now, and isn't now created (exists)
     if (fContext.Modified && !fContext.IsUpdated() && !fContext.IsUnknown())
     {
         // TODO: if file is new and not exists - don't save it, but hint to user
         SaveFile(fContext.FileName);
     }
 }