Skip to content

Instantly share code, notes, and snippets.

@juanplopes
Created December 27, 2010 13:43
Show Gist options
  • Save juanplopes/756142 to your computer and use it in GitHub Desktop.
Save juanplopes/756142 to your computer and use it in GitHub Desktop.
/// <summary>
/// Devolve sempre 1.
/// </summary>
/// <returns></returns>
private Double FechaPorta()
{
Double fechaPorta = 0d;
switch (_port)
{
case Port.COM1:
fechaPorta = PesoSaturno_v11.FechaCom1();
break;
case Port.COM2:
fechaPorta = PesoSaturno_v11.FechaCom2();
break;
case Port.COM3:
fechaPorta = PesoSaturno_v11.FechaCom3();
break;
case Port.COM4:
fechaPorta = PesoSaturno_v11.FechaCom4();
break;
default:
break;
}
return fechaPorta;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment