void StartResolve() { if (GenerateDone) { contenerResult.ClearDataPipe(); } List <int> listCuts = new List <int>(); foreach (var item in vBoxContainer.GetChildren()) { switch (item) { case ButtonDebit2 buttonDebit when buttonDebit.length != null: for (int i = 1; i <= buttonDebit.qt; i++) { listCuts.Add((int)buttonDebit.length); } break; } } int.TryParse(lineEditLengthBase.Text, out int lengthbase); int.TryParse(lineEditCutSize.Text, out int cutSize); pipeManager = new PipeManager(lineEditDescription.Text, lengthbase + cutSize, listCuts, cutSize); pipeManager.Process(); contenerResult.Show(); contenerResult.FillDataPipe(pipeManager.GetEnumerable()); GenerateDone = true; }
void StartResolve() { GD.Print("has been resolve"); List <int> listCut = new List <int>(); foreach (var item in vBoxContainer.GetChildren()) { switch (item) { case ButtonDebit buttonDebit when buttonDebit.length != null: listCut.Add((int)buttonDebit.length); break; } } pipeManager = new PipeManager(lineEdit.Text, 6005, listCut, 5); pipeManager.Process(); foreach (var pipe in pipeManager.GetEnumerable()) { String cutString = $"{lineEdit.Text} : "; foreach (var cut in pipe) { cutString += cut.ToString(); cutString += "-"; } GD.Print(cutString); } }