示例#1
0
        void MakeDiskSelecter()
        {
            int Step = 7;

            Drives = DriveInfo.GetDrives();

            MyFunc.Geminus <int> Sizes = MyFunc.Set(Drives.Length * Step + 2, 5);
            Field.Array  = new char[Sizes.Secundus, Sizes.Primis];
            Field.Koords = MyFunc.Set(MyFunc.AlignString(Sizes.Primis, Global.Sizes.Primis, 1), Global.Sizes.Secundus / 4);

            MyFunc.FillArray(Field.Array, ' ');

            Label.SomeString = "";
            Label.Koords     = MyFunc.Set(2, 0);

            Global.FillBroders(Field.Array);

            HorizKoords = new MyFunc.Quadrupla <int> [Drives.Length];
            string TempoName = "";

            for (int i = 0; i < Drives.Length; ++i)
            {
                HorizKoords[i] = MyFunc.Set(0, i * Step + Field.Koords.Primis + 2, (i + 1) * Step + Field.Koords.Primis, Global.Sizes.Primis);

                TempoName += Drives[i].Name[0];
                MyFunc.CopyStringToArray(MyFunc.Set(i * Step + 4, 2), TempoName, Field.Array, true);
                TempoName = "";
            }

            CurrentIndex = Field.Koords.Secundus + 2;

            Indexer.SetMinMax(0, Drives.Length - 1);
            Indexer.Set(0);
        }
示例#2
0
        void MakeButtons()
        {
            Buttons[0] = "F1 Help";
            Buttons[1] = "F2 Disk";
            Buttons[2] = "F3 Read";
            Buttons[3] = "F4 Edit";
            Buttons[4] = "F5 Copy";
            Buttons[5] = "F6 Make File";
            Buttons[6] = "F7 Make Dir";
            Buttons[7] = "F8 Delete";
            Buttons[8] = "F9 Tree";
            Buttons[9] = "F10 Exit";

            ButtonField.Array  = new char[3, Global.Sizes.Primis - 4];
            ButtonField.Koords = MyFunc.Set(2, Global.Sizes.Secundus - 4);

            int Step = ButtonField.Array.GetLength(1) / 10;
            int ToCenter;

            MyFunc.Geminus <int> TempoKoords = MyFunc.Set(2, 1);
            for (int i = 0; i < 10; ++i)
            {
                ToCenter           = (Step - Buttons[i].Length) / 2;
                TempoKoords.Primis = 2 + i * Step + ToCenter;

                MyFunc.CopyStringToArray(TempoKoords, Buttons[i], ButtonField.Array, true);
            }

            Global.FillBroders(ButtonField.Array);
            MyFunc.CopyStringToArray(MyFunc.Set(2, 0), " Buttons ", ButtonField.Array, true);
            MyFunc.Copy(ref ButtonField.Koords, ButtonField.Array, Global.Field);
        }
示例#3
0
        void MakeOkCancel()
        {
            MyFunc.Geminus <int> Sizes = MyFunc.Set(36, 5);
            Field.Array  = new char[Sizes.Secundus, Sizes.Primis];
            Field.Koords = MyFunc.Set(MyFunc.AlignString(Sizes.Primis, Global.Sizes.Primis, 1), MyFunc.AlignString(Sizes.Secundus, Global.Sizes.Secundus, 1));

            MyFunc.FillArray(Field.Array, ' ');

            string[] Names = { "YES", "NO" };
            MyFunc.CopyStringToArray(MyFunc.Set(MyFunc.AlignString(Names[0].Length, Sizes.Primis / 2, 1), 2), Names[0], Field.Array, true);
            MyFunc.CopyStringToArray(MyFunc.Set(MyFunc.AlignString(Names[1].Length, Sizes.Primis / 2, 1) + 18, 2), Names[1], Field.Array, true);

            Label.SomeString = "";
            Label.Koords     = MyFunc.Set(2, 0);

            Global.FillBroders(Field.Array);
            //MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, Field.Array, true);

            HorizKoords    = new MyFunc.Quadrupla <int> [2];
            HorizKoords[0] = MyFunc.Set(0, Field.Koords.Primis + 2, Field.Koords.Primis + Sizes.Primis / 2 - 1, Global.Sizes.Primis);
            HorizKoords[1] = MyFunc.Set(0, Field.Koords.Primis + Sizes.Primis / 2 + 1, Field.Koords.Primis + Sizes.Primis - 2, Global.Sizes.Primis);

            CurrentIndex = Field.Koords.Secundus + 2;

            Indexer.SetMinMax(0, 1);
            Indexer.Set(0);
        }
示例#4
0
        /*
         * public void Show(ref List<Global.DPoint> NewEntaries001, int Min001, int Max001)
         * {
         *  if (NewEntaries001.Any() && NewEntaries001 == null)
         *  {
         *      return;
         *  }
         *
         *  MyFunc.FillArray(Field, ' ');
         *
         *  MyFunc.Geminus<int> TempoPlacer = ContentKoords;
         *
         *  for (int i = Min001; i < Max001; ++i)
         *  {
         *      MyFunc.CopyStringToArray(ref TempoPlacer, NewEntaries001[i].Name, Field, true);
         ++TempoPlacer.Secundus;
         *  }
         *
         *  Global.FillBroders(Field);
         *  MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, Field, true);
         *
         *  MyFunc.Copy(ref Koords, Field, Global.Field);
         * }*/
        public void Show()
        {
            if (!Enabled)
            {
                return;
            }
            //MyFunc.FillArray(Field, ' ');

            Global.FillBroders(Field);
            MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, Field, true);

            MyFunc.Copy(ref Koords, Field, Global.Field);
        }
示例#5
0
        public void Show(string SomeString001)
        {
            if (Enabled)
            {
                return;
            }
            MyFunc.FillArray(Field, ' ');
            MyFunc.CopyStringToArray(ContentKoords, SomeString001, Field, true);

            Global.FillBroders(Field);
            MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, Field, true);

            MyFunc.Copy(ref Koords, Field, Global.Field);
        }
示例#6
0
        static public void Init(int Primis001, int Secundus001)
        {
            Sizes.Primis   = Primis001;
            Sizes.Secundus = Secundus001;

            Field = new char[Sizes.Secundus, Sizes.Primis];
            MyFunc.FillArray(Field, ' ');
            Global.FillBroders(Field);

            Label.SomeString = " MaNorto ";
            Label.Koords     = MyFunc.Set((Global.Sizes.Primis - Label.SomeString.Length) / 2, 0);
            MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, Field, true);

            Attention.Init(MyFunc.Set(2, Global.Sizes.Secundus - 7), 3, Global.Sizes.Primis - 4, MyFunc.Set(2, 1));
            Attention.SetLabel(MyFunc.Set(2, 0), " System Messages ");
            Attention.Enabled = true;
        }
示例#7
0
        public void Init(MyFunc.Geminus<int> Koords001, MyFunc.Geminus<int> Sizes001)
        {
            MainField.Array = new char[Sizes001.Secundus, Sizes001.Primis];
            MainField.Koords = Koords001;
            Global.FillBroders(MainField.Array);
            
            MyFunc.Geminus<int> PartSizes = MyFunc.Set(Sizes001.Primis / 6, Sizes001.Secundus - 2);

            PartesOfContent[0].Array = new char[PartSizes.Secundus, PartSizes.Primis * 3];
            PartesOfContent[0].Koords = MyFunc.Set(1, 1);

            PartesOfContent[1].Array = new char[PartSizes.Secundus, PartSizes.Primis];
            PartesOfContent[1].Koords = MyFunc.Set(Sizes001.Primis - 3 * PartSizes.Primis - 1, 1);

            PartesOfContent[2].Array = new char[PartSizes.Secundus, PartSizes.Primis];
            PartesOfContent[2].Koords = MyFunc.Set(Sizes001.Primis - 2 * PartSizes.Primis - 1, 1);

            PartesOfContent[3].Array = new char[PartSizes.Secundus, PartSizes.Primis];
            PartesOfContent[3].Koords = MyFunc.Set(Sizes001.Primis - PartSizes.Primis - 1, 1);
            
            Labels[0].SomeString = " Content ";
            Labels[1].SomeString = " Type ";
            Labels[2].SomeString = " Attribute ";
            Labels[3].SomeString = " Size ";

            
            Labels[0].Koords = MyFunc.Set(PartesOfContent[0].Koords.Primis, 0);

            for (int i = 1; i < 4; ++i)
            {
                int Aligner001 = MyFunc.AlignString(Labels[i].SomeString.Length, PartesOfContent[i].Array.GetLength(1), 1);
                Labels[i].Koords = MyFunc.Set(PartesOfContent[i].Koords.Primis + Aligner001, 0);
            }
            /*
            Labels[1].Koords = MyFunc.Set(PartesOfContent[1].Koords.Primis, 0);
            Labels[2].Koords = MyFunc.Set(PartesOfContent[2].Koords.Primis, 0);
            Labels[3].Koords = MyFunc.Set(PartesOfContent[3].Koords.Primis + Labels[2].SomeString.Length / 2, 0);*/

            MyFunc.CopyStringToArray(Labels[0].Koords, Labels[0].SomeString, MainField.Array, true);
            MyFunc.CopyStringToArray(Labels[1].Koords, Labels[1].SomeString, MainField.Array, true);
            MyFunc.CopyStringToArray(Labels[2].Koords, Labels[2].SomeString, MainField.Array, true);
            MyFunc.CopyStringToArray(Labels[3].Koords, Labels[3].SomeString, MainField.Array, true);

            Line.Array = new char[Sizes001.Secundus - 2];
            Line.Koords = MyFunc.Set(0, 1);
        }
示例#8
0
 static public void Clear()
 {
     MyFunc.FillArray(Field, ' ');
     Global.FillBroders(Field);
     MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, Field, true);
 }