예제 #1
0
        public static void Main(string[] args)
        {
            StartSW.Start();
            Console.WriteLine(Vars.ASCII);
            Log("Main delegator activated!", "DELEGATOR");
            Log("Starting pmcenter, version " + AppVer.ToString() + ".", "DELEGATOR");
            Task MainAsyncTask = MainAsync(args);

            MainAsyncTask.Wait();
            Log("Main worker accidentally exited. Stopping...", "DELEGATOR", LogLevel.ERROR);
            Environment.Exit(1);
        }
예제 #2
0
 private void SetKey_KeyDown(object sender, KeyEventArgs e)
 {
     if (set)
     {
         return;
     }
     if (e.KeyCode == Keys.Escape)
     {
         SetKey.Text = "None";
         set         = true;
         StartSW.Focus();
         SetKey.Enabled = false;
     }
     else
     {
         SetKey.Text = e.Modifiers.ToString() + ", " + e.KeyCode.ToString();
     }
 }
예제 #3
0
 private void SetKey_KeyUp(object sender, KeyEventArgs e)
 {
     set = true;
     StartSW.Focus();
     SetKey.Enabled = false;
 }