// Tries to select the given mixdown. If it cannot, selects the last mixdown on the list.
        // Does not raise the propertychanged event.
        private void SelectMixdown(HBMixdown mixdown)
        {
            MixdownViewModel mixdownToSelect = this.MixdownChoices.FirstOrDefault(m => m.Mixdown == mixdown);

            if (mixdownToSelect != null)
            {
                this.selectedMixdown = mixdownToSelect;
            }
            else
            {
                this.selectedMixdown = this.MixdownChoices[this.MixdownChoices.Count - 1];
            }
        }
Example #2
0
		// Tries to select the given mixdown. If it cannot, selects the last mixdown on the list.
		// Does not raise the propertychanged event.
		private void SelectMixdown(HBMixdown mixdown)
		{
			MixdownViewModel mixdownToSelect = this.MixdownChoices.FirstOrDefault(m => m.Mixdown == mixdown);
			if (mixdownToSelect != null)
			{
				this.selectedMixdown = mixdownToSelect;
			}
			else
			{
				this.selectedMixdown = this.MixdownChoices[this.MixdownChoices.Count - 1];
			}
		}