Example #1
0
 public static void SetTabProperties(IntPtr child, TabBehavior behavior)
 {
     if (IsInitialized)
     {
         taskbar.SetTabProperties(child, behavior);
     }
 }
Example #2
0
        private static void HandleKeyInput(ConsoleKeyInfo input)
        {
            TabBehavior.ResetTabValues();

            string currentInput = ConsoleInterface.Builder.ToString();

            if (input.Key == ConsoleKey.Backspace && currentInput.Length > 0)
            {
                ConsoleInterface.Builder.Remove(ConsoleInterface.Builder.Length - 1, 1);
                ConsoleInterface.ClearCurrentLine();

                currentInput = currentInput.Remove(currentInput.Length - 1);
                ConsoleInterface.ShowPrefix();
                Console.Write(currentInput);
            }
            else
            {
                var key = input.KeyChar;
                ConsoleInterface.Builder.Append(key);
                ConsoleInterface.ClearCurrentLine();
                ConsoleInterface.BuildCurrentConsoleLine();
            }
        }
Example #3
0
 private static void HandleTabInput()
 {
     TabBehavior.HandleTab();
 }
Example #4
0
 public static void SetTabProperties(IntPtr child, TabBehavior behavior)
 {
     if (IsInitialized)
         taskbar.SetTabProperties(child, behavior);
 }