public void AddBarClicked(string selectedTheme) { IBar newTheme = GetThemeByString(selectedTheme); Debug.WriteLine(string.Format("AddBarClicked theme=\"{0}\"", newTheme.GetInfo().FriendlyName)); Model.Add(newTheme); }
public void ChangeTheme(IBar newBar) { if (_hasBar && (newBar.GetInfo().FriendlyName != GetCurrentBar().GetInfo().FriendlyName)) { Debug.WriteLine("Changing theme FROM=\"{0}\" TO=\"{1}\"", GetCurrentBar().GetInfo().FriendlyName, newBar.GetInfo().FriendlyName); RemoveBar(); _currentBar = newBar; _hasBar = true; Add(newBar); } else { Debug.WriteLine("Ignoring change theme event. Nothing changed"); } }