private void LuaFunctionParserServiceParsedFunctions(object sender, SledLuaFunctionParserServiceEventArgs e) { // Only refresh what's been updated // Remove existing functions for items m_dictFunctions.Remove(e.File); // Add items and functions back m_dictFunctions.Add(e.File, e.Functions.ToList()); }
private void LuaFunctionParserServiceParsedFunctions(object sender, SledLuaFunctionParserServiceEventArgs e) { if (m_sd == null) { return; } if (m_sd.SledProjectFile == null) { return; } // Only care about our particular project file if (!m_sd.SledProjectFile.Equals(e.File)) { return; } UpdateFunctions(e.Functions); SelectFunction(); }