protected override void DrawContent() { if (ImGui.Button(m_AddPinText + "##" + ID)) { ExecOC newPin = NewOutPin(); m_ExecOC_List.Add(newPin); AddComponet(newPin); } }
public ExecOC NewOutPin() { ExecOC newExecOC = new ExecOC(); newExecOC.Text = m_OutPinBaseName + m_OutPinIndex; if (m_OutPinIndex == 0) { newExecOC.Text = newExecOC.Text.PadLeft(9); } else { newExecOC.Text = newExecOC.Text.PadLeft(10); } ++m_OutPinIndex; return(newExecOC); }