public ScanningPanel(WizzardControl iWizzard) { InitializeComponent(); Wizzard = iWizzard; FourStateActiveX.CurrentState = ItemState.eScanning; foreach (var item in panelScanning.Controls) { if (item is FourStateControl) { var fourStateItem = item as FourStateControl; fourStateItem.CurrentState = ItemState.eNotScanned; _ProcessingItems.Add(fourStateItem); CustomScannerItems.Add(new CustomScanner { Name = fourStateItem.ScannerName, IDs = fourStateItem.ScannerId, FoundItems = new Dictionary <IDToDescript, long>() }); } } CleanEngineClient.Instance().EnableAllScanners(true); CleanEngineClient.Instance().ScanningPerfomed += new CleanEngineClient.StartScan(ScanningPanel_ScanningPerfomed); FLCleanEngine.ManagedCleanEngine.CEScanFinished += new FLCleanEngine.CEScannerFinished(ScannerFinishedProcessing); FLCleanEngine.ManagedCleanEngine.CENotifierItemFound += new FLCleanEngine.CENotificationItemFound(ScannerItemFound); FLCleanEngine.ManagedCleanEngine.CEScanStart += new FLCleanEngine.CEScannerStarted(ScannerStartedProcessing); }
public DefragStep1Panel(WizzardControl iWizzard) { InitializeComponent(); _bw.DoWork += new DoWorkEventHandler(_bw_DoWork); _bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_bw_RunWorkerCompleted); Wizzard = iWizzard; }
public SettingsPanel(WizzardControl iWizzard) { InitializeComponent(); Wizzard = iWizzard; checkBoxOnStartUp.Checked = _CheckStartUpEntry(); checkBoxSetRestore.Checked = ApplicationSettings.SetRestore; checkBoxAutoShutDown.Checked = ApplicationSettings.AutoShutDown; checkBoxAutomaticallyRepair.Checked = ApplicationSettings.AutoRepair; checkBoxAutoUpdates.Checked = ApplicationSettings.AutoUpdate; _ComboScheduleType.SelectedIndexChanged += new EventHandler(_ComboScheduleType_SelectedIndexChanged); _ComboBoxDay.SelectedIndex = 0; _ComboScheduleType.SelectedIndex = 0; try { StreamReader sr = new StreamReader(Path.Combine(Environment.CurrentDirectory, "gnrd.kys")); while (sr.Peek() >= 0) { listViewIgnoreKeys.Items.Add(sr.ReadLine()); } sr.Close(); } catch { } RegistryKey key = Registry.CurrentUser.OpenSubKey(Program.ApplicationOptions + @"\Scheduler", false); if (key != null) { try { _ComboScheduleType.SelectedIndex = Convert.ToInt32(key.GetValue("type")); } catch { } try { _ComboBoxDay.SelectedIndex = Convert.ToInt32(key.GetValue("day")); } catch { } try { _HoursUpDown.Value = Convert.ToInt32(key.GetValue("hours")); } catch { } try { _MinutesUpDown.Value = Convert.ToInt32(key.GetValue("minutes")); } catch { } } }
public StartUpPanel(WizzardControl iWizzard) { InitializeComponent(); Wizzard = iWizzard; manager.GetStartupInRunKeys(); manager.GetStartupInMSConfigKeys(); foreach (var sitem in manager.StratUpList) { InsertAnItemToList(sitem); } }
public StartScanPanel(WizzardControl iWizzard) { InitializeComponent(); Wizzard = iWizzard; this.ButtonStartScanMain.MouseHover += new System.EventHandler(ButtonStartScanMain_MouseHover); this.ButtonStartScanMain.MouseLeave += new System.EventHandler(ButtonStartScanMain_MouseLeave); RegistryKey key = Registry.CurrentUser.OpenSubKey(Program.ApplicationOptions); if (key != null) { String date = String.Empty; try { date = key.GetValue("LastScan").ToString(); } catch { date = String.Empty; } var labels_parts = labelLastScanPerformed.Text.Split(' '); if ((labels_parts.Count() > 1) && !String.IsNullOrEmpty(date)) { labelLastScanPerformed.Text = ""; labels_parts[labels_parts.Count() - 1] = date; foreach (var word in labels_parts) { labelLastScanPerformed.Text += (" " + word); } } } list_checks.AddRange(new CustomFrontLineCheckButton[] { CheckButtonAppErrors, CheckButtonWinErrors, CheckButtonOCXErrors, CheckButtonRegErrors, CheckButtonRecycleBin, CheckButtonTempInternet, CheckButtonDLLErrors, CheckButtonTempFiles, CheckButtonInvalidFiles }); CleanEngineClient.Instance().ScanningPerfomed += new CleanEngineClient.StartScan(StartScanPanel_ScanningPerfomed); if (ApplicationSettings.NeedScan) { tmScan.Tick -= tmScan_Tick; tmScan.Tick += new EventHandler(tmScan_Tick); tmScan.Start(); } }
public StatisticsPanel(WizzardControl iWizzard) { InitializeComponent(); Wizzard = iWizzard; FLCleanEngine.ManagedCleanEngine.CEScanStart += new FLCleanEngine.CEScannerStarted(ScannerStartedProcessing); FLCleanEngine.ManagedCleanEngine.CENotifierItemFound += new FLCleanEngine.CENotificationItemFound(ScannerItemFound); var items = this.ListViewStats.Items; foreach (var item in items) { var casting = (ListViewItem)item; { items[items.IndexOf(casting)].SubItems.Add("0"); items[items.IndexOf(casting)].SubItems.Add("0"); items[items.IndexOf(casting)].SubItems.Add("0"); } } errors.Add(ScannerHelpers.ScannerAsociation(20601), 0); }
public BackUpPanel(WizzardControl iWizzard) { InitializeComponent(); tm.Interval = 80; tm.Tick += new EventHandler(tm_Tick); try { var backup_dir = Path.Combine(Environment.CurrentDirectory, "Backup"); if (Directory.Exists(backup_dir)) { DirectoryInfo d_info = new DirectoryInfo(backup_dir); FileInfo[] fls = d_info.GetFiles("*.bkp"); foreach (var fl in fls) { var lvitem = this.ListViewBackUps.Items.Add(fl.Name); lvitem.Tag = fl.FullName; } } } catch { } }
public FixErrorsPanel(WizzardControl iWizzard) { InitializeComponent(); Wizzard = iWizzard; }
public ExtrasPanel(WizzardControl iWizzard) { InitializeComponent(); Wizzard = iWizzard; }