|
namespace RadioFeatureSelection
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
public partial class RadioInterfaceOptions : UserControl
{
#region Fields
private int frequency;
private AudioOUT.PlayAudio.SpeakerLocation speakerLocation = AudioOUT.PlayAudio.SpeakerLocation.LeftRight;
#endregion Fields
#region Constructors
public RadioInterfaceOptions()
{
InitializeComponent();
}
#endregion Constructors
#region Enumerations
public enum SpeakerLocation
{
Left,
Right,
LeftRight
}
#endregion Enumerations
#region Properties
public int Frequency
{
set
{
}
get
{
return frequency;
}
}
#endregion Properties
#region Methods
private void button_Apply_Click(object sender, EventArgs e)
{
if (this.textBox_Frequency.Text.Length > 0)
{
Int32.TryParse(this.textBox_Frequency.Text, out frequency);
}
}
private void EarChoice()
{
if (this.radioButton_BothEars.Checked == true)
{
speakerLocation = AudioOUT.PlayAudio.SpeakerLocation.LeftRight;
}
if (this.radioButton_LeftEar.Checked == true)
{
speakerLocation = AudioOUT.PlayAudio.SpeakerLocation.Left;
}
if (this.radioButton_RightEar.Checked == true)
{
speakerLocation = AudioOUT.PlayAudio.SpeakerLocation.Right;
}
}
#endregion Methods
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.