Пример #1
0
        /// <summary>
        ///		Render all of the stored graphics to console output
        /// </summary>
        /// <param name="isRenderAll">
        /// </param>
        private static void RenderGraphics(bool isRenderAll = true)
        {
            Layer tempLayer = new Layer(VSystem.Layers[VSystem.GetFocusedSubProgram().ProgramID]);

            VSystem.Layers[VSystem.GetFocusedSubProgram().ProgramID].Update();

            if (isRenderAll)
            {
                VSystem.RenderAll();
            }
            else
            {
                //loadRenderQueue(VSystem.Layers[VSystem.GetFocusedSubProgram().ProgramID], tempLayer);

                VSystem.TestRenderPartially();
            }
        }
Пример #2
0
        public static void Main(string[] args)
        {
            initiation();

            runNotepadTest();
            VSystem.SubPrograms[VSystem.SubPrograms.Count - 1].Window_Component.GetRenderBuffer();
            VSystem.RenderAll();

            while (true)
            {
                KeyPressed = Console.ReadKey();
                Console.Clear();

                VSystem.ParseAndExecute(KeyPressed);
                //VSystem.SubPrograms[VSystem.SubPrograms.Count - 1].Window_Component.GetRenderBuffer();
                VSystem.RenderAll();
            }
        }
Пример #3
0
        public static void Main(string[] args)
        {
            initialization();

            #region TestAddNotepadInstanceToRuntime

            VSystem.SubPrograms.Add(new Notepad());
            VSystem.IsFocused = Focus.Focused;

            VSystem.Layers.Add(new Layer());

            #endregion

            try
            {
                while (true)
                {
                    RenderGraphics(true);

                    KeyPressed = Console.ReadKey();
                    // Try this remedy
                    Console.CursorLeft--;
                    Console.Write(' ');

                    Console.SetCursorPosition(0, 0);

                    VSystem.ParseAndExecute(KeyPressed);
                }
            }
            catch (Exception exception)
            {
                //ShowMessage(EffectiveField.Global, MessageType.Error, "Unknown Error", true, exception);

                throw exception;
            }
        }