Exemple #1
0
        protected void EndInit(bool noUpdate)
        {
            ThreadPool.QueueUserWorkItem(InitDrag);

            System.Diagnostics.Debug.WriteLine(DateTime.Now.TimeOfDay + " LoadData");

            _WorkItem.KbrdHook.KeyDown += KbrdHook_KeyDown;
            CreateTrayIcon();

            System.Diagnostics.Debug.WriteLine(DateTime.Now.TimeOfDay + " NotifyIcon");

            if (!noUpdate && _WorkItem.Settings.CheckNewVersionAtStartUp)
            {
                _WorkItem.Commands.CheckVersion.Execute(true);
            }

            _WorkItem.AppData.NeedAppImage += (s, e) =>
                                              _WorkItem.ImageLoader.RequestImage(s as AppInfo);
            _WorkItem.RecycleBin.RegisterSource(_WorkItem.AppData, true);
            _WorkItem.ImageLoader.StartLoad();
            _WorkItem.AppData.ReInitImages();

            SetActivationPanelState();
            MemoryHelper.Clean();
        }
Exemple #2
0
        public override void Execute(object parameter)
        {
            MainWindow wnd = _WorkItem.MainWindow;

            wnd.Show();
            User32.ActivateWindow(wnd);
            wnd.SetFocus();

            MemoryHelper.Clean();
        }
Exemple #3
0
 public override void Execute(object parameter)
 {
     ShowWndManager(parameter);
     MemoryHelper.Clean();
 }