Ejemplo n.º 1
0
		/// <summary>
		/// Fill the com port selector with a list of available ports.
		/// </summary>
		private void FillAvailable()
		{
			string s;
            
			SerialPort p = new SerialPort(this.Func, false);
			for(int i = 1; i <= MAX_PORTS; i++)
			{
				s = "COM" + i.ToString() + ":";
				if(p.Available(s))
				{
					this.ComPort.Items.Add(s);
				}
			}
			this.ComPort.SelectedIndex = 0;
			return;
		}