GlueViewOfficialPlugins.Scripting.ScriptParsingPlugin.ApplyEventResponseSave C# (CSharp) Method

ApplyEventResponseSave() private method

private ApplyEventResponseSave ( ElementRuntime elementRuntime, EventResponseSave ers ) : void
elementRuntime FlatRedBall.Glue.ElementRuntime
ers FlatRedBall.Glue.Events.EventResponseSave
return void
        private void ApplyEventResponseSave(ElementRuntime elementRuntime, EventResponseSave ers)
        {
            IElement element = elementRuntime.AssociatedIElement;
            string projectDirectory = FileManager.GetDirectory(GlueViewState.Self.CurrentGlueProjectFile);
            string[] lines = GetMethodLines(element, ers, projectDirectory);
            string fileName = EventResponseSave.GetSharedCodeFullFileName(element, projectDirectory);

            CodeContext codeContext = new CodeContext(elementRuntime);
            ApplyLinesInternal(lines, 0, lines.Length, element, codeContext, fileName);
        }