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); }
public void Show() { if (!Enabled) { return; } //MyFunc.FillArray(Field, ' '); Global.AddMarkPainterKoords(CurrentIndex, HorizKoords[Indexer.Get()]); MyFunc.Copy(ref Field.Koords, Field.Array, Global.Field); }
/* * 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); }
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); }
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 Show() { Partes[0].Show(); Partes[1].Show(); MyFunc.Copy(ref ButtonField.Koords, ButtonField.Array, Global.Field); Global.Attention.Show(); Helper.Show(); MaShouwar.Show(); NameEnterer.Show(); Confirmer.Show(); DiskSelecter.Show(); }
static public void FillBroders(char[,] SomeField) { if (SomeField == null) { return; } char[] HoriArray = new char[SomeField.GetLength(1)]; char[] VertArray = new char[SomeField.GetLength(0)]; MyFunc.FillArray(HoriArray, '═'); MyFunc.FillArray(VertArray, '║'); MyFunc.Copy(MyFunc.Set(0, 0), HoriArray, SomeField, true); MyFunc.Copy(MyFunc.Set(0, SomeField.GetLength(0) - 1), HoriArray, SomeField, true); MyFunc.Copy(MyFunc.Set(0, 0), VertArray, SomeField, false); MyFunc.Copy(MyFunc.Set(SomeField.GetLength(1) - 1, 0), VertArray, SomeField, false); SomeField[0, 0] = '╔'; SomeField[0, SomeField.GetLength(1) - 1] = '╗'; SomeField[SomeField.GetLength(0) - 1, SomeField.GetLength(1) - 1] = '╝'; SomeField[SomeField.GetLength(0) - 1, 0] = '╚'; }
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); }
public void Show() { MyFunc.Copy(ref Koords, SomeArray, Global.Field, true); }