phdesign.NppToolBucket.FindAndReplace.FindAndReplace C# (CSharp) Method

FindAndReplace() private method

private FindAndReplace ( ) : System
return System
        private FindAndReplace()
        {
            _editor = Editor.GetActive();

            _window = new FindAndReplaceForm
            {
                FindHistory = Settings.FindHistory.ToArray(),
                ReplaceHistory = Settings.ReplaceHistory.ToArray(),
                MatchCase = Settings.MatchCase,
                MatchWholeWord = Settings.MatchWholeWord,
                UseRegularExpression = Settings.UseRegularExpression,
                SearchFromBegining = Settings.SearchFromBegining,
                SearchBackwards = Settings.SearchBackwards,
                SearchIn = Settings.SearchIn
            };
            if (!Settings.WindowSize.IsEmpty)
            {
                _window.ClientSize = Settings.WindowSize;
            }
            if (!Settings.WindowLocation.IsEmpty)
            {
                _window.StartPosition = FormStartPosition.Manual;
                _window.Location = Settings.WindowLocation;
            }
            _window.DoAction += OnDoAction;
            _owner = new WindowWrapper(PluginBase.nppData._nppHandle);
        }