Ejemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        private SledFindAndReplaceForm()
        {
            s_instance = this;

            InitializeComponent();

            if (!StartLocation.IsEmpty)
            {
                StartPosition = FormStartPosition.Manual;
                Location      = StartLocation;
            }

            // Associate SledFindAndReplaceModes enum to find/replace buttons
            m_strpFindDropDown_QuickFindItem.Tag         = SledFindAndReplaceModes.QuickFind;
            m_strpFindDropDown_FindInFilesItem.Tag       = SledFindAndReplaceModes.FindInFiles;
            m_strpReplaceDropDown_QuickReplaceItem.Tag   = SledFindAndReplaceModes.QuickReplace;
            m_strpReplaceDropDown_ReplaceInFilesItem.Tag = SledFindAndReplaceModes.ReplaceInFiles;

            //
            // Add all individual find/replace controls to the form
            //

            // Add "Quick Find"
            m_frmQuickFind = new SledFindAndReplaceForm_QuickFind {
                Tag = SledFindAndReplaceModes.QuickFind
            };
            m_lstForms.Add(m_frmQuickFind);
            m_frmQuickFind.FindAndReplaceEvent += SubFormFindAndReplaceEvent;

            // Add "Find In Files"
            m_frmFindInFiles = new SledFindAndReplaceForm_FindInFiles {
                Tag = SledFindAndReplaceModes.FindInFiles
            };
            m_lstForms.Add(m_frmFindInFiles);
            m_frmFindInFiles.FindAndReplaceEvent += SubFormFindAndReplaceEvent;

            // Add "Quick Replace"
            m_frmQuickReplace = new SledFindAndReplaceForm_QuickReplace {
                Tag = SledFindAndReplaceModes.QuickReplace
            };
            m_lstForms.Add(m_frmQuickReplace);
            m_frmQuickReplace.FindAndReplaceEvent += SubFormFindAndReplaceEvent;

            // Add "Replace In Files"
            m_frmReplaceInFiles = new SledFindAndReplaceForm_ReplaceInFiles {
                Tag = SledFindAndReplaceModes.ReplaceInFiles
            };
            m_lstForms.Add(m_frmReplaceInFiles);
            m_frmReplaceInFiles.FindAndReplaceEvent += SubFormFindAndReplaceEvent;

            SkinService.SkinChangedOrApplied += SkinServiceSkinChangedOrApplied;
            ApplySkin();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        private SledFindAndReplaceForm()
        {
            s_instance = this;
            
            InitializeComponent();

            if (!StartLocation.IsEmpty)
            {
                StartPosition = FormStartPosition.Manual;
                Location = StartLocation;
            }

            // Associate SledFindAndReplaceModes enum to find/replace buttons
            m_strpFindDropDown_QuickFindItem.Tag = SledFindAndReplaceModes.QuickFind;
            m_strpFindDropDown_FindInFilesItem.Tag = SledFindAndReplaceModes.FindInFiles;
            m_strpReplaceDropDown_QuickReplaceItem.Tag = SledFindAndReplaceModes.QuickReplace;
            m_strpReplaceDropDown_ReplaceInFilesItem.Tag = SledFindAndReplaceModes.ReplaceInFiles;

            //
            // Add all individual find/replace controls to the form
            //

            // Add "Quick Find"
            m_frmQuickFind = new SledFindAndReplaceForm_QuickFind {Tag = SledFindAndReplaceModes.QuickFind};
            m_lstForms.Add(m_frmQuickFind);
            m_frmQuickFind.FindAndReplaceEvent += SubFormFindAndReplaceEvent;

            // Add "Find In Files"
            m_frmFindInFiles = new SledFindAndReplaceForm_FindInFiles {Tag = SledFindAndReplaceModes.FindInFiles};
            m_lstForms.Add(m_frmFindInFiles);
            m_frmFindInFiles.FindAndReplaceEvent += SubFormFindAndReplaceEvent;

            // Add "Quick Replace"
            m_frmQuickReplace = new SledFindAndReplaceForm_QuickReplace {Tag = SledFindAndReplaceModes.QuickReplace};
            m_lstForms.Add(m_frmQuickReplace);
            m_frmQuickReplace.FindAndReplaceEvent += SubFormFindAndReplaceEvent;

            // Add "Replace In Files"
            m_frmReplaceInFiles = new SledFindAndReplaceForm_ReplaceInFiles {Tag = SledFindAndReplaceModes.ReplaceInFiles};
            m_lstForms.Add(m_frmReplaceInFiles);
            m_frmReplaceInFiles.FindAndReplaceEvent += SubFormFindAndReplaceEvent;
            
            SkinService.SkinChangedOrApplied += SkinServiceSkinChangedOrApplied;
            ApplySkin();
        }