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

            InitializeComponent();
            Directory.Text = _editing.Location;
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
            });
        }
Ejemplo n.º 9
0
 public AddProgramSource(Settings settings)
 {
     InitializeComponent();
     _settings = settings;
     Directory.Focus();
 }