private static void OnThemeChange(object sender, EventArgs e) { OnlineResources.Reset(); ResetResources(); ResetIcons(); CarsCache.Clear(); SessionsCache.Clear(); }
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); } }
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()); }
public SummaryExtractor(AxMethod method) { this.method = method; resource = new OnlineResources(); }