/// <summary> /// Gets input from the user. /// </summary> private void GetInput() { while (true) { input = Console.ReadKey(true).KeyChar; if (input != null && !end) { if (VIP) { Sounder.MakeCoolSound((char)input); } else { Sounder.MakeSound(piano.Tones.GetInfo((char)input).Item2); } } } }
/// <summary> /// Gets input from the user. /// </summary> private void GetInput() { while (true) { input = Console.ReadKey(true).KeyChar; if (input != null) { if (userPaid) { Sounder.MakeCoolSound(input); } else { Sounder.MakeSound(GetFrequencyFromKey(input)); } } } }
/// <summary> /// Gets input from the user. /// </summary> private void GetInput() { while (true) { input = Console.ReadKey(true).KeyChar; if (input != null && !end) { if (paid) { Sounder.MakeCoolSound((char)input); } else { Sounder.MakeSound(piano.PlayTone((char)input)); } } } }