private void OnChangeGSMax(ChangeGSMaxType ChangeGSMax) { int senderIdx = FindComponentIndex(ChangeGSMax.component); if (senderIdx < 0) { throw new Exception("Unknown Canopy Component: " + Convert.ToString(ChangeGSMax.component)); } ComponentData[senderIdx].Gsmax += ChangeGSMax.dlt; }