Пример #1
0
        /*
         * string NewLevelUPPath(string SomePath001)
         * {
         *  string[] PartesPath = SomePath001.Split(Slasher);
         *
         *  string NewPath = "";
         *
         *  if(PartesPath.Length < 3)
         *  {
         *      NewPath += PartesPath[0];
         *      NewPath += Slasher;
         *      return NewPath;
         *  }
         *
         *  for (int i = 0; i < PartesPath.Length - 1; ++i)
         *  {
         *      NewPath += PartesPath[i];
         *      if(i != PartesPath.Length - 2)
         *      {
         *          NewPath += Slasher;
         *      }
         *  }
         *
         *  return NewPath;
         * }
         *
         * string NewLevelDownPath(string SomePath001, string NameDir)
         * {
         *  string[] PartesPath = SomePath001.Split(Slasher);
         *
         *  string NewPath = "";
         *
         *  if (PartesPath.Length < 3 && PartesPath[1] == "")
         *  {
         *      NewPath += PartesPath[0];
         *      NewPath += Slasher;
         *      NewPath += NameDir;
         *      return NewPath;
         *  }
         *
         *  foreach (var Item in PartesPath)
         *  {
         *      NewPath += Item;
         *      NewPath += Slasher;
         *  }
         *
         *  NewPath += NameDir;
         *
         *  return NewPath;
         * }*/

        public void Show()
        {
            //CopyDirToPlacer(ref DirEntare, Placer);

            LabelCurrentPath.Show();
            //VisibleContent.Show(ref DirEntare, MainMarker.GetMin(), MainMarker.GetMax());
            Nintus.Show();

            //MyFunc.Copy(ref LabelCurrentPath.Koords, LabelCurrentPath.SomeArray, Global.Field, true);

            for (int i = 0; i < Global.Sizes.Secundus; ++i)
            {
                //Сравниваем итоговый индекс маркера с итератором
                if (i == MainMarker.GetVisIndex())
                //if(i == VisIndex.Get())
                //if(i == MainMarker.Get(1))
                {
                    //MainMarker.Colorize();
                    //Colorize();
                    //ColoriseSubString(ref MarkerKoords, Placer, ConsoleColor.DarkBlue);
                    continue;
                }
                Console.WriteLine(MyFunc.GetString(i, Global.Field));
            }
        }
Пример #2
0
        static void ColorizeWord(int SomeIndex001, MyFunc.Quadrupla <int> HorizKoods001)
        {
            //Colorize LEFT PART
            Console.Write(MyFunc.GetString(SomeIndex001, HorizKoods001.Primis, HorizKoods001.Secundus, Global.Field));

            //Colorize CENTER PART
            Console.ForegroundColor = ConsoleColor.DarkRed;
            Console.Write(MyFunc.GetString(SomeIndex001, HorizKoods001.Secundus, HorizKoods001.Tertium, Global.Field));
            Console.ResetColor();

            //Colorize RIGHT PART
            string Str001 = MyFunc.GetString(SomeIndex001, HorizKoods001.Tertium, HorizKoods001.Quartus, Global.Field);

            Console.Write(Str001);

            //Move To The Next Line
            Console.WriteLine();
        }
Пример #3
0
        public void Colorize()
        {
            //TotalIndex = VerticalIndex + GlobalKoords.Secundus;
            //Colorize LEFT PART
            Console.Write(MyFunc.GetString(VisIndex.Get(), Left.GetMin(), Left.Get(), Global.Field));

            //Colorize CENTER PART
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.Write(MyFunc.GetString(VisIndex.Get(), Left.Get(), Right.Get(), Global.Field));
            Console.ResetColor();

            //Colorize RIGHT PART
            string Str001 = MyFunc.GetString(VisIndex.Get(), Right.Get(), Right.GetMax(), Global.Field);

            Console.Write(Str001);

            //Move To The Next Line
            Console.WriteLine();
        }