Ejemplo n.º 1
0
 public static void OnDeleted(XmlDocFileEventArgs e)
 {
     if (Deleted != null)
     {
         Deleted(e);
     }
     SyncFileWatcher.Start();
 }
Ejemplo n.º 2
0
 public static void OnSaved(XmlDocFileEventArgs e)
 {
     if (Saved != null)
     {
         Saved(e);
     }
     SyncFileWatcher.Start();
 }
Ejemplo n.º 3
0
        public static void OnPreDelete(XmlDocFileEventArgs e)
        {
            SyncFileWatcher.Pause();
            if (preDelete != null)
            {
                preDelete(e);
            }

            if (Deleting != null)
            {
                Deleting(e);
            }
        }
Ejemplo n.º 4
0
        public static void OnPreSave(XmlDocFileEventArgs e)
        {
            SyncFileWatcher.Pause();

            /* going to phase this out - naming is saving/saved) */
            if (preSave != null)
            {
                preSave(e);
            }

            if (Saving != null)
            {
                Saving(e);
            }
        }