Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WindowWidth = 120;
            Action <NullUtilVK.Enums.SafetyEnums.MessageStatus, string> OutDelegate = PrintConsole;
            var    NullApi = new NullUtilVk(OutDelegate);
            string read    = String.Empty;

            while (true)
            {
                read = Console.ReadLine().ToLower();
                if (read == "exit" || read == "quit")
                {
                    break;
                }
                NullApi.RawCommand(read);
            }
            NullApi.Dispose();
        }
Beispiel #2
0
 //Console input handler
 private void HandleUserCommand(object sender, UserCommandEventArgs e)
 {
     MainApi.RawCommand(e.CommandAndArgs);
 }