Example #1
0
        private void ChangeMode(SledFindAndReplaceModes mode)
        {
            m_mode = mode;

            ISledFindAndReplaceSubForm theFrm = null;

            // Activate correct control and deactivate incorrect control
            foreach (ISledFindAndReplaceSubForm frm in m_lstForms)
            {
                if ((SledFindAndReplaceModes)frm.Control.Tag == Mode)
                {
                    theFrm = frm;
                }

                Controls.Remove(frm.Control);
            }

            if (theFrm == null)
            {
                return;
            }

            Controls.Add(theFrm.Control);
            theFrm.InitialText = InitialText;
            Invalidate(true);
        }
 protected SledFindAndReplaceEventArgs(SledFindAndReplaceModes mode)
 {
     m_mode = mode;
 }
Example #3
0
        private void ChangeMode(SledFindAndReplaceModes mode)
        {
            m_mode = mode;

            ISledFindAndReplaceSubForm theFrm = null;

            // Activate correct control and deactivate incorrect control
            foreach (ISledFindAndReplaceSubForm frm in m_lstForms)
            {
                if ((SledFindAndReplaceModes)frm.Control.Tag == Mode)
                    theFrm = frm;

                Controls.Remove(frm.Control);
            }

            if (theFrm == null)
                return;

            Controls.Add(theFrm.Control);
            theFrm.InitialText = InitialText;
            Invalidate(true);
        }
 protected SledFindAndReplaceEventArgs(SledFindAndReplaceModes mode)
 {
     m_mode = mode;
 }