/// <summary> /// Applies the configuration options to the component /// </summary> /// <param name="component"></param> /// <exception cref="System.ArgumentException">Thrown when the player object doesn't match the expected type</exception> public override void ApplyChangesToComponent(Assemblies.Components.ComposerComponent component) { if (!(component is Markee)) { throw new ArgumentException(string.Format("Given parameter was of type {0}. {1} expected", component.GetType().ToString(), typeof(Markee).ToString()), "config"); } Markee comp = component as Markee; try { comp.TextList = footer.TextList; comp.Speed = footer.Speed; comp.BackColor = footer.BackColor; comp.TextColor = footer.TextColor; comp.MarkeeFont = footer.MarkeeFont; comp.Direction = footer.Direction; } catch (Exception ex) { #if DEBUG MessageBox.Show("ApplyChangesToComponent" + Environment.NewLine + ex.Message); #endif } }