Exemplo n.º 1
0
 protected override void DrawContent()
 {
     if (ImGui.Button(m_AddPinText + "##" + ID))
     {
         ExecOC newPin = NewOutPin();
         m_ExecOC_List.Add(newPin);
         AddComponet(newPin);
     }
 }
Exemplo n.º 2
0
        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);
        }