Пример #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)
            {
                if (m_strOriginalName != null)
                {
                    m_atConfig.Remove(m_strOriginalName);
                }

                m_atConfig.Set(m_cmbWindow.Text, strNewSeq);
            }
            else
            {
                m_atConfig.DefaultSequence = strNewSeq;
            }
        }
Пример #2
0
        private void OnBtnOK(object sender, EventArgs e)
        {
            EnableControlsEx();
            Debug.Assert(m_btnOK.Enabled); if (!m_btnOK.Enabled)
            {
                return;
            }

            if (!m_bEditSequenceOnly)
            {
                if (m_strOriginalName != null)
                {
                    m_atConfig.Remove(m_strOriginalName);
                }

                m_atConfig.Set(m_cmbWindow.Text, m_rbKeySeq.Text);
            }
            else
            {
                m_atConfig.DefaultSequence = m_rbKeySeq.Text;
            }

            CleanUpEx();
        }