示例#1
0
        private void NoteChanged(object sender, NoteChangedEventArgs e)
        {
            invSaveNotesLocal.Request();
            invSaveNotesRemote.Request();
            invSaveNotesGitBackup.Request();

            listener.OnSyncRequest();

            listener.OnNoteChanged(e);
        }
示例#2
0
        private void NoteChanged(object sender, NoteChangedEventArgs e)         // only local changes
        {
            _invSaveNotesLocal.Request();
            _invSaveNotesRemote.Request();
            _invSaveNotesGitBackup.Request();

            _listener.OnSyncRequest();

            _listener.OnNoteChanged(e);
        }
示例#3
0
        public void UpdateAndRequestSave(Guid account, HierarchicalWrapper_Folder folders, DirectoryPath selectedFolderPath, string selectedNote)
        {
            LoggerSingleton.Inst.Trace("HierarchyConfigCache", $"Request Save (full)");

            var dat = new HierarchyConfigData
            {
                SelectedFolder = selectedFolderPath,
                SelectedNote   = selectedNote,
                Entry          = folders.ToHCEntry()
            };

            lock (_masterLock)
            {
                _data[account] = dat;
            }
            invSave.Request();
        }
        private void WatcherOnChanged(object sender, FileSystemEventArgs e)
        {
            if (_isSyncing)
            {
                return;
            }

            _invSyncRequest.Request();
            LoggerSingleton.Inst.Debug("RawFolderSync", $"Filewatcher triggered with {e.ChangeType} for '{e.Name}'", e.FullPath);
        }
示例#5
0
        private void SearchTextInternalChanged()
        {
            var sdm = GetActualSearchDelayMode();

            if (sdm == SearchDelayMode.Direct)
            {
                ApplyInternalSearchText();
            }
            if (sdm == SearchDelayMode.Delayed)
            {
                _invSearch.Request();
            }
        }
 public void RequestSettingsSave()
 {
     _invSaveSettings.Request();
 }
示例#7
0
 public void SetDirty()
 {
     invSave.Request();
 }
示例#8
0
        public void SetDirty()
        {
            LoggerSingleton.Inst.Trace("ScrollCache", $"Request Save (SetDirty)");

            invSave.Request();
        }