コード例 #1
0
        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();
            }
        }
コード例 #2
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     SpaceWatch.RealeseHook();
     Properties.Settings.Default.Save();
 }