コード例 #1
0
ファイル: OnlineItem.cs プロジェクト: windygu/actools
 private static void OnThemeChange(object sender, EventArgs e)
 {
     OnlineResources.Reset();
     ResetResources();
     ResetIcons();
     CarsCache.Clear();
     SessionsCache.Clear();
 }
コード例 #2
0
        private void OnlineResources_Cliked(object sender, RoutedEventArgs e)
        {
            try
            {
                OnlineResources resources = new OnlineResources();

                ControlDialog.Show("Resource Centre", resources, string.Empty, owner: this, autoSize: false);
            }
            catch (Exception err)
            {
                ErrorLog.ShowError(err);
            }
        }
コード例 #3
0
        public HomeViewCommandViewModel
        (
            IImageManager imageManager,
            OnlineResources onlineResources,
            ISystemLogManager logger,
            IDialogService dialogService,
            IDeviceManager deviceManager
        )
        {
            if (Config.ShowForm)
            {
                Form1 form1 = new Form1();
                form1.Show();
            }

            SystemLogService.Init(logger, dialogService);
            Main.Init(onlineResources, deviceManager);

            Thread timerTickThread  = new Thread(_ => Main.MonitorTimerTick());
            Thread timerResetThread = new Thread(_ => Main.MonitorTimerReset());

            timerTickThread.IsBackground  = true;
            timerResetThread.IsBackground = true;

            timerTickThread.Start();
            timerResetThread.Start();

            //DisplayName = Properties.Resources.DisplayName;
            //DisplayInfo = new ExplorerDisplayInfo
            //{
            //    Description = Properties.Resources.DisplayName,
            //    Image16 = imageManager.GetImage16Path("OK"),
            //    ExplorerImage16 = imageManager.GetImage16Path("OK")
            //};

            //Command = new RelayCommand(_ => HelloWorld());
        }
コード例 #4
0
        public SummaryExtractor(AxMethod method)
        {
            this.method = method;

            resource = new OnlineResources();
        }