old mode 100644
new mode 100755
| | |
| | | { |
| | | devicePic.UnSelectedImagePath = "Device/SensorTemperature.png"; |
| | | btnName.Text = Language.StringByID(R.MyInternationalizationString.Temperature) + " (℃)"; |
| | | invalidText1 = btnNum.Text; |
| | | invalidText1 = btnNum.Text;
|
| | | } |
| | | else |
| | | { |
| | | line2.Visible = false; |
| | | devicePic.UnSelectedImagePath = "Device/SensorHumidity.png"; |
| | | btnName.Text = Language.StringByID(R.MyInternationalizationString.Humidity) + " (%)"; |
| | | invalidText2 = btnNum.Text; |
| | | invalidText2 = btnNum.Text;
|
| | | } |
| | | |
| | | btnNum.TextChangeEventHandler += (sender, e) =>
|
| | |
| | | else
|
| | | {
|
| | | invalidText2 = btnNum.Text;
|
| | | } |
| | | |
| | | }
|
| | | |
| | | }; |
| | | |
| | | btnReduction.MouseDownEventHandler += async (sender, e) => |
| | | {
|
| | | if (!string.IsNullOrEmpty(btnNum.Text))
|
| | | if(!string.IsNullOrEmpty(btnNum.Text))
|
| | | {
|
| | | double vTemp = double.Parse(btnNum.Text);
|
| | | vTemp -= 0.1;
|
| | |
| | | {
|
| | | try
|
| | | {
|
| | | if (string.IsNullOrEmpty(invalidText1))
|
| | | if (string.IsNullOrEmpty(invalidText1) )
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|
| | |
| | | });
|
| | | return;
|
| | | }
|
| | | if (string.IsNullOrEmpty(invalidText2))
|
| | | if ( string.IsNullOrEmpty(invalidText2))
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|