{Spanish}
Métodos de WeatherNet
-SetData(string stringenterprise, string stringcountry, string stringregion, string stringcity, string stringidiom);
Este método sirve para saber el país, la región (estado o provincia), la ciudad , además de la empresa proveedora del servicio que dá el pronóstico (por ahora sólo google, debo estudiar los XML de las demás) y además el idioma con el que se maneja. Si usted maneja el idioma español debe colocar "es", si prefiere el francés "fr", si prefiere el inglés "en".
-SetLabelCountry(string stringcountry);
-SetLabelRegion(string stringregion);
- SetLabelCity(string stringcity);
- SetLabelDate(string stringdate);
- SetLabelDay(string stringday);
- SetLabelMinimum(string stringminimum);
- SetLabelMaximum(string stringmaximum);
Debido a que el servicio de google sólo cambia algunos parámetros según el idioma, usted puede modificar las etiquetas a través de estos métodos, por ejemplo si no quiere que aparezca "Country", coloque una cadena vacía "". Si prefiere que en lugar de Country aparezca en español "País" coloque SetLabelCountry("País");. Lo mismo sería para el resto de los métodos.
- Show()
Por último debe llamar al método Show que es quien llama a las funciones que leen el XML y muestra los datos recibidos, tenga en cuenta que este método debe llamarlo después de llamar a SetData(string stringenterprise, string stringcountry, string stringregion, string stringcity, string stringidiom);
{English} {Google Translator}
Methods WeatherNet
-SetData(string stringenterprise, string stringcountry, string stringregion, string stringcity, string stringidiom);
This method is used to find the country, region (state or province), the city, along with the company providing the service that gives the forecast (for now just google, I study the XML of the others) and also the language is handled. If you manage to put the Spanish language "is", if you prefer the French "fr", if you prefer the English "in".
-SetLabelCountry(string stringcountry);
-SetLabelRegion(string stringregion);
- SetLabelCity(string stringcity);
- SetLabelDate(string stringdate);
- SetLabelDay(string stringday);
- SetLabelMinimum(string stringminimum);
- SetLabelMaximum(string stringmaximum);
Because google service only changes some parameters depending on the language, you can change the labels through these methods, for example if you do not want to appear "Country", place an empty string "". If you prefer that instead of appearing in Spanish Country "Country" place SetLabelCountry ("Country"). The same would hold for the other methods.
- Show()
Finally should call the Show method that is called by the functions that read the XML and displays the received data, note that this method must call after call SetData(string stringenterprise, string stringcountry, string stringregion, string stringcity, string stringidiom);