private void Form1_Load(object sender, EventArgs e) { //HotKey registrieren SpaceWatch.Init((int)Properties.Settings.Default.FastViewKey); SpaceWatch.SpacePressed += new EventHandler(SpacePressed); //Fenster abrunden Region = GetRoundedRect(new RectangleF(0, 0, ClientRectangle.Width, ClientRectangle.Height), 20); if (Properties.Settings.Default.UpdateEnabled) { updateController1.checkForUpdatesAsync(); } }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { SpaceWatch.RealeseHook(); Properties.Settings.Default.Save(); }