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); }
public void Init() { Partes[0] = new NortoPart(); Partes[1] = new NortoPart(); Partes[0].Active = true; Partes[1].Active = false; Partes[0].Enabled = true; Partes[1].Enabled = true; Partes[0].Init(MyFunc.Set(2, 0), 0); Partes[1].Init(MyFunc.Set(Global.Sizes.Primis / 2 + 1, 0), 1); NumberPart.SetMinMax(0, 1); NumberPart.Set(0); MakeButtons(); MakeHelper(); MaShouwar.Init(MyFunc.Set(0, 0), Global.Sizes.Secundus, Global.Sizes.Primis); MyFunc.Geminus <int> TempoKoords; TempoKoords.Primis = MyFunc.AlignString(78, Global.Sizes.Primis, 1); TempoKoords.Secundus = MyFunc.AlignString(3, Global.Sizes.Secundus, 1); NameEnterer.Init(TempoKoords, 3, 78, MyFunc.Set(0, 0)); //NameEnterer.Enabled = true; Confirmer.Init(0); DiskSelecter.Init(1); DiskSelecter.SetLabel(" Select The Disk ", 1); }
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); }
public void SetLabel(string FileName001) { string NewName = ' ' + FileName001 + ' '; MainField.SetLabel(MyFunc.Set(MyFunc.AlignString(NewName.Length, VisibleField.Array.GetLength(1), 1), 0), NewName); //Label.SomeString = FileName001; //Label.Koords = MyFunc.Set((VisibleField.Array.GetLength(1) - FileName001.Length) / 2, 0); }
public void Show(ref List<Global.Str_Properties> NewEntaries001, int Min001, int Max001) { if (NewEntaries001.Any() && NewEntaries001 == null) { return; } MyFunc.FillArray(PartesOfContent[0].Array, ' '); MyFunc.FillArray(PartesOfContent[1].Array, ' '); MyFunc.FillArray(PartesOfContent[2].Array, ' '); MyFunc.FillArray(PartesOfContent[3].Array, ' '); MyFunc.Geminus<int> TempoPlacer = MyFunc.Set(0, 0); MyFunc.Geminus<int> SizePlacer = MyFunc.Set(0, 0); MyFunc.Geminus<int> AlignPlacer = MyFunc.Set(0, 0); string NameSize; for (int i = Min001; i < Max001; ++i) { MyFunc.CopyStringToArray(ref TempoPlacer, NewEntaries001[i].Name, PartesOfContent[0].Array, true); AlignPlacer = TempoPlacer; AlignPlacer.Primis = MyFunc.AlignString(NewEntaries001[i].Type.ToString().Length, PartesOfContent[1].Array.GetLength(1), 1); if(NewEntaries001[i].Type != Global.Types.LevelUp) { MyFunc.CopyStringToArray(ref AlignPlacer, NewEntaries001[i].Type.ToString(), PartesOfContent[1].Array, true); } AlignPlacer.Primis = MyFunc.AlignString(NewEntaries001[i].Attribute.Length, PartesOfContent[2].Array.GetLength(1), 1); MyFunc.CopyStringToArray(ref AlignPlacer, NewEntaries001[i].Attribute, PartesOfContent[2].Array, true); if(NewEntaries001[i].Size > 0) { SizePlacer = TempoPlacer; NameSize = NewEntaries001[i].Size.ToString(); //SizePlacer.Primis = TempoPlacer .Primis + PartesOfContent[3].Array.GetLength(1) - NameSize.Length; SizePlacer.Primis = TempoPlacer.Primis + MyFunc.AlignString(NameSize.Length, PartesOfContent[3].Array.GetLength(1), 2); MyFunc.CopyStringToArray(ref SizePlacer, NameSize, PartesOfContent[3].Array, true); } ++TempoPlacer.Secundus; } MyFunc.Copy(ref PartesOfContent[0].Koords, PartesOfContent[0].Array, MainField.Array); MyFunc.Copy(ref PartesOfContent[1].Koords, PartesOfContent[1].Array, MainField.Array); MyFunc.Copy(ref PartesOfContent[2].Koords, PartesOfContent[2].Array, MainField.Array); MyFunc.Copy(ref PartesOfContent[3].Koords, PartesOfContent[3].Array, MainField.Array); MyFunc.Copy(ref MainField.Koords, MainField.Array, Global.Field); }
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); }
public void SetLabel(string NewLabel001, int Align) { Label.SomeString = NewLabel001; switch (Align) { case 0: Label.Koords = MyFunc.Set(1, 0); break; case 1: Label.Koords = MyFunc.Set(MyFunc.AlignString(NewLabel001.Length, Field.Array.GetLength(1), 1), 0); break; case 2: Label.Koords = MyFunc.Set(MyFunc.AlignString(NewLabel001.Length, Field.Array.GetLength(1), 2) - 1, 0); break; } MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, Field.Array, true); }
public void Show() { if (!Enabled) { return; } if (Data == null) { return; } MyFunc.FillArray(VisibleField.Array, ' '); //Global.FillBroders(Field); //MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, Field, true); Pages.Primis = Scroller001.GetMin() / VisibleField.Array.GetLength(0) + 1; string TempoString = $" Current Page {Pages.Primis} of {Pages.Secundus} "; HelpField.SetLabel(MyFunc.Set(MyFunc.AlignString(TempoString.Length, VisibleField.Array.GetLength(1), 1), 0), TempoString); MyFunc.Geminus <int> TempoKoords = MyFunc.Set(0, 0); for (int i = Scroller001.GetMin(); i < Scroller001.GetMax(); ++i) { MyFunc.CopyStringToArray(ref TempoKoords, Data[i], VisibleField.Array, true); ++TempoKoords.Secundus; } //Global.FillBroders(VisibleField.Array); //MyFunc.CopyStringToArray(Label.Koords, Label.SomeString, VisibleField.Array, true); MyFunc.Copy(ref VisibleField.Koords, VisibleField.Array, MainField.GetField()); MainField.Show(); HelpField.Show(); //MyFunc.Copy(ref VisibleField.Koords, VisibleField.Array, Global.Field); }