public MainWindow() { InitializeComponent(); ReassembleLocations = new List <WorstHack>(); FindButton.AddHandler(MouseDownEvent, new RoutedEventHandler(FindButton_MouseDown), true); LeagueVersionLabel.Content = IntendedVersion; if (File.Exists("debug.log")) { File.Delete("debug.log"); } if (Directory.Exists("temp")) { DeletePathWithLongFileNames(Path.GetFullPath("temp")); } if (Directory.Exists(Path.Combine(Path.GetPathRoot(Environment.SystemDirectory), "wm"))) { MessageBox.Show("You may have malware on your system due to getting this application from an unknown source. Please delete C:/wm/ and the file inside it and then download this application from http://da.viddiaz.com/LESs"); } worker.DoWork += worker_DoWork; worker.RunWorkerCompleted += worker_RunWorkerCompleted; if (!Debugger.IsAttached) { AppDomain.CurrentDomain.FirstChanceException += CurrentDomain_FirstChanceException; } }