Пример #1
0
        private void ImplTypeMenuItem_Click(object sender, EventArgs e)
        {
            foreach (ToolStripMenuItem aMenuItem in m_myParent.byImplementationTypeToolStripMenuItem.DropDownItems)
            {
                aMenuItem.Checked = false;
            }
            this.Checked = true;
            m_myParent.ImplTypeFilter = m_strImplType;
            m_myParent.UpdateFilteringIndication();

            // add that to the registry also, so we remember it.
            RegistryKey keyLastDebugState = Registry.CurrentUser.CreateSubKey(FormClipboardEncConverter.cstrProjectMemoryKey);

            keyLastDebugState.SetValue(FormClipboardEncConverter.cstrProjectImplTypeFilterLastState, ((m_strImplType == null) ? "" : m_strImplType));
        }
Пример #2
0
        private void ProcTypeMenuItem_Click(object sender, EventArgs e)
        {
            m_myParent.showAllTransductionTypesToolStripMenuItem.Checked = false;
            this.Checked = !this.Checked;
            if (this.Checked)
            {
                m_myParent.ProcessTypeFilter |= m_eProcessType;
            }
            else
            {
                m_myParent.ProcessTypeFilter &= ~m_eProcessType;
            }
            m_myParent.UpdateFilteringIndication();

            // add that to the registry also, so we remember it.
            RegistryKey keyLastDebugState = Registry.CurrentUser.CreateSubKey(FormClipboardEncConverter.cstrProjectMemoryKey);

            keyLastDebugState.SetValue(FormClipboardEncConverter.cstrProjectTransTypeFilterLastState, (Int32)m_myParent.ProcessTypeFilter);
        }
Пример #3
0
        private void EncodingFilterMenuItem_Click(object sender, EventArgs e)
        {
            foreach (ToolStripMenuItem aMenuItem in m_myParent.byEncodingToolStripMenuItem.DropDownItems)
            {
                aMenuItem.Checked = false;
            }
            this.Checked = true;

            // if this is the top menu item (which indicates: filtering off), then clear out the filter string
            string strEncodingID = null;

            if (this.Text != FormClipboardEncConverter.cstrProjectEncodingFilterOffDisplayString)
            {
                strEncodingID = this.Text;
            }

            m_myParent.EncodingFilter = strEncodingID;
            m_myParent.UpdateFilteringIndication();

            // add that to the registry also, so we remember it.
            RegistryKey keyLastDebugState = Registry.CurrentUser.CreateSubKey(FormClipboardEncConverter.cstrProjectMemoryKey);

            keyLastDebugState.SetValue(FormClipboardEncConverter.cstrProjectEncodingFilterLastState, ((strEncodingID == null) ? "" : strEncodingID));
        }