internal void ReadAutoTypeItem(XmlNode xmlNode, AutoTypeConfig atStorage)
        {
            ProcessNode(xmlNode);

            string strWindow = string.Empty, strKeySeq = string.Empty;

            foreach (XmlNode xmlChild in xmlNode.ChildNodes)
            {
                if (xmlChild.Name == ElemWindow)
                {
                    strWindow = ReadString(xmlChild);
                }
                else if (xmlChild.Name == ElemKeystrokeSequence)
                {
                    strKeySeq = ReadString(xmlChild);
                }
                else
                {
                    ReadUnknown(xmlChild);
                }
            }

            atStorage.Set(strWindow, strKeySeq);
        }
示例#2
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;
            }
        }
示例#3
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();
        }
        private void ReadAutoTypeItem(XmlNode xmlNode, AutoTypeConfig atStorage)
        {
            ProcessNode(xmlNode);

            string strWindow = string.Empty, strKeySeq = string.Empty;

            foreach(XmlNode xmlChild in xmlNode.ChildNodes)
            {
                if(xmlChild.Name == ElemWindow)
                    strWindow = ReadString(xmlChild);
                else if(xmlChild.Name == ElemKeystrokeSequence)
                    strKeySeq = ReadString(xmlChild);
                else ReadUnknown(xmlChild);
            }

            atStorage.Set(strWindow, strKeySeq);
        }