AGS.Editor.GUIController.ScriptFunctionUIEditor_OpenScriptEditor C# (CSharp) Метод

ScriptFunctionUIEditor_OpenScriptEditor() приватный Метод

private ScriptFunctionUIEditor_OpenScriptEditor ( bool isGlobalScript, string functionName ) : void
isGlobalScript bool
functionName string
Результат void
        private void ScriptFunctionUIEditor_OpenScriptEditor(bool isGlobalScript, string functionName)
        {
            if (OnZoomToFile != null)
            {
                // We need to start a timer, because we are within the
                // property grid processing at the moment
                _timerScriptName = (isGlobalScript) ? Script.GLOBAL_SCRIPT_FILE_NAME : Script.CURRENT_ROOM_SCRIPT_FILE_NAME;
                _timerSearchForText = "function " + functionName + "(";
                Timer timer = new Timer();
                timer.Interval = 100;
                timer.Tick += new EventHandler(timer_Tick);
                timer.Start();
            }
        }
GUIController