Beispiel #1
0
        private void OnBtnOK(object sender, EventArgs e)
        {
            EnableControlsEx();
            Debug.Assert(m_btnOK.Enabled); if (!m_btnOK.Enabled)
            {
                return;
            }

            string strNewSeq = (m_rbSeqCustom.Checked ? m_rbKeySeq.Text : string.Empty);

            if (!m_bEditSequenceOnly)
            {
                AutoTypeAssociation atAssoc;
                if (m_iAssocIndex >= 0)
                {
                    atAssoc = m_atConfig.GetAt(m_iAssocIndex);
                }
                else
                {
                    atAssoc = new AutoTypeAssociation();
                    m_atConfig.Add(atAssoc);
                }

                atAssoc.WindowName = m_cmbWindow.Text;
                atAssoc.Sequence   = strNewSeq;
            }
            else
            {
                m_atConfig.DefaultSequence = strNewSeq;
            }
        }
Beispiel #2
0
 public void Add(AutoTypeAssociationBuffer value)
 {
     mAutoTypeConfig.Add(value.AutoTypeAssociation);
 }