Esempio n. 1
0
 public ProgramSetting(PluginInitContext context, Settings settings)
 {
     this.context = context;
     InitializeComponent();
     Loaded += Setting_Loaded;
     _settings = settings;
 }
Esempio n. 2
0
 public AddProgramSource(Settings settings)
 {
     InitializeComponent();
     _settings = settings;
     Suffixes.Text = string.Join(";", settings.ProgramSuffixes);
     Directory.Focus();
 }
Esempio n. 3
0
 public ProgramSuffixes(PluginInitContext context, Settings settings)
 {
     this.context = context;
     InitializeComponent();
     _settings = settings;
     tbSuffixes.Text = string.Join(ProgramSource.SuffixSeperator.ToString(), _settings.ProgramSuffixes);
 }
Esempio n. 4
0
File: Main.cs Progetto: danisein/Wox
 public Main()
 {
     _settingsStorage = new PluginJsonStorage<Settings>();
     _settings = _settingsStorage.Load();
     _cacheStorage = new BinaryStorage<ProgramIndexCache>();
     _cache = _cacheStorage.Load();
 }
Esempio n. 5
0
        public AddProgramSource(Settings.ProgramSource edit, Settings settings)
        {
            _editing = edit;
            _settings = settings;

            InitializeComponent();
            Directory.Text = _editing.Location;
        }
Esempio n. 6
0
        public AddProgramSource(ProgramSource edit, Settings settings)
        {
            _editing = edit;
            _settings = settings;

            InitializeComponent();
            Directory.Text = _editing.Location;
            MaxDepth.Text = _editing.MaxDepth.ToString();
            Suffixes.Text = string.Join(";", _editing.Suffixes);
        }
Esempio n. 7
0
        public Main()
        {
            _settingsStorage = new PluginJsonStorage<Settings>();
            _settings = _settingsStorage.Load();

            Stopwatch.Debug("Preload programs", () =>
            {
                _cacheStorage = new BinaryStorage<ProgramIndexCache>();
                _cache = _cacheStorage.Load();
                _win32s = _cache.Programs;
            });
            Log.Info($"Preload {_win32s.Length} programs from cache");
            Stopwatch.Debug("Program Index", IndexPrograms);
        }
Esempio n. 8
0
        public Main()
        {
            _settingsStorage = new PluginJsonStorage<Settings>();
            _settings = _settingsStorage.Load();

            Stopwatch.Normal("Preload programs", () =>
            {
                _win32Storage = new BinaryStorage<Win32[]>("Win32Cache");
                _win32s = _win32Storage.TryLoad(new Win32[] { });
                _uwpStorage = new BinaryStorage<UWP.Application[]>("UWPCache");
                _uwps = _uwpStorage.TryLoad(new UWP.Application[] { });

            });
            Log.Info($"Preload {_win32s.Length} win32 programs from cache");
            Log.Info($"Preload {_uwps.Length} uwps from cache");
            Task.Run(() =>
            {
                Stopwatch.Normal("Program Index", IndexPrograms);
            });
        }
Esempio n. 9
0
 public AddProgramSource(Settings settings)
 {
     InitializeComponent();
     _settings = settings;
     Directory.Focus();
 }