예제 #1
0
        public void AddButton(int iResult, string strCommand, string strDescription)
        {
            if (strCommand == null)
            {
                throw new ArgumentNullException("strCommand");
            }

            VtdButton btn = new VtdButton(true);

            if (strDescription == null)
            {
                btn.Text = strCommand;
            }
            else
            {
                btn.Text = strCommand + "\n" + strDescription;
            }

            btn.ID = iResult;

            m_vButtons.Add(btn);
        }
예제 #2
0
        public void AddButton(int iResult, string strCommand, string strDescription)
        {
            if(strCommand == null) throw new ArgumentNullException("strCommand");

            VtdButton btn = new VtdButton(true);

            if(strDescription == null) btn.Text = strCommand;
            else btn.Text = strCommand + "\n" + strDescription;

            btn.ID = iResult;

            m_vButtons.Add(btn);
        }