Exemplo n.º 1
0
 public static void Back()
 {
     conTol.WriteLine("Press any key to go back");
     Console.ReadKey(true);
     conTol.Clear();
     conTol = new ConsoleTools(ConsoleColor.Green);
     conTol.WriteLine("[Keen|Mate] Training - Done by Damien Clément", true);
 }
Exemplo n.º 2
0
        public static void Init()
        {
            conTol = new ConsoleTools(ConsoleColor.Green);
            conTol.WriteLine("[Keen|Mate] Training - Done by Damien Clément", true);
            conTol.NextRow(3);

            Update();

            //WriteFunctions();
            //SelectFunction();
        }
Exemplo n.º 3
0
 public void Draw(ConsoleTools t_consT)
 {
     //NOTE Set color as defualt
     t_consT.Set_Color(ConsoleColor.Green, m_default_background);
     t_consT.Set_Cursor_Position((Console.WindowWidth / 2) - (m_label.Length / 2), m_pos_y - 2);
     t_consT.WriteLine(m_label);
     t_consT.Set_Color(m_default_foreground, m_default_background);
     for (int i = 0; i < m_elements.Length; i++)
     {
         t_consT.Set_Cursor_Position((Console.WindowWidth / 2) - (m_elements[i].Length / 2), m_pos_y + i);
         if (pointer == i)
         {
             t_consT.Set_Color(m_selected_foreground, m_selected_background);
             t_consT.WriteLine(m_elements[i]);
             //NOTE Set color to default
             t_consT.Set_Color(m_default_foreground, m_default_background);
         }
         else
         {
             t_consT.WriteLine(m_elements[i]);
         }
     }
 }