AGS.Editor.DialogEditor.OnCommandClick C# (CSharp) Метод

OnCommandClick() защищенный Метод

protected OnCommandClick ( string command ) : void
command string
Результат void
        protected override void OnCommandClick(string command)
        {
            base.OnCommandClick(command);
            if ((command == FIND_COMMAND) || (command == REPLACE_COMMAND)
                || (command == FIND_ALL_COMMAND) || (command == REPLACE_ALL_COMMAND))
            {
                if (scintillaEditor.IsSomeSelectedText())
                {
                    _lastSearchText = scintillaEditor.SelectedText;
                }
                else _lastSearchText = string.Empty;
                ShowFindReplaceDialog(command == REPLACE_COMMAND || command == REPLACE_ALL_COMMAND,
                    command == FIND_ALL_COMMAND || command == REPLACE_ALL_COMMAND);
            }
            else if (command == FIND_NEXT_COMMAND)
            {
                if (_lastSearchText.Length > 0)
                {
                    scintillaEditor.FindNextOccurrence(_lastSearchText, _lastCaseSensitive, true);
                }
            }
            else if (command == GOTO_LINE_COMMAND)
            {
                GotoLineDialog gotoLineDialog = new GotoLineDialog
                {
                    Minimum = 1,
                    Maximum = scintillaEditor.LineCount,
                    LineNumber = scintillaEditor.CurrentLine + 1
                };
                if (gotoLineDialog.ShowDialog() != DialogResult.OK) return;
                scintillaEditor.GoToLine(gotoLineDialog.LineNumber);
            }
        }