IndexPrograms() public static method

public static IndexPrograms ( ) : void
return void
コード例 #1
0
ファイル: FileChangeWatcher.cs プロジェクト: zzjeric/Wox
 private static void FileChanged(object source, FileSystemEventArgs e)
 {
     Task.Run(() =>
     {
         Main.IndexPrograms();
     });
 }
コード例 #2
0
ファイル: ProgramSetting.xaml.cs プロジェクト: zgca/CodeHub
 private void ReIndexing()
 {
     programSourceView.Items.Refresh();
     Task.Run(() =>
     {
         Dispatcher.Invoke(() => { indexingPanel.Visibility = Visibility.Visible; });
         Main.IndexPrograms();
         Dispatcher.Invoke(() => { indexingPanel.Visibility = Visibility.Hidden; });
     });
 }
コード例 #3
0
        private void FileChanged(object source, FileSystemEventArgs e)
        {
            if (!_indexing)
            {
                // only the first file watch event will actually trigger indexing to avoid
                // race conditions.
                _indexing = true;

                Task.Run(() =>
                {
                    Main.IndexPrograms();
                });
            }
        }