Example #1
0
        public Program()
        {
            commands = new Commands();
            console  = new Console(new Point(10, 10), new Size(500, 128), Color.FromArgb(150, 120, 120, 120));
            HintValues.PopulateHints();

            // Queue events
            this.Tick    += onTick;
            this.KeyUp   += onKeyUp;
            this.KeyDown += onKeyDown;
        }
Example #2
0
 /// <summary>
 /// Run the hints given the input params
 /// </summary>
 /// <param name="consoleParams"></param>
 public void RunHint(string[] consoleParams)
 {
     string[] hints = HintValues.FindHinds(consoleParams[0], consoleParams[consoleParams.Length - 1], consoleParams.Length);
     if (hints != null && !hints[0].Equals(string.Empty))
     {
         for (int i = 0; i < textHints.Length; i++)
         {
             if (hints[i] != null)
             {
                 textHints[i].Caption = hints[i];
             }
         }
     }
     else
     {
         ClearHints();
     }
 }