-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.xaml
81 lines (75 loc) · 2.8 KB
/
App.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="MQTTXamarin.MainPage"
Title="Cliente MQTT"
Padding="0, 20, 0, 0">
<AbsoluteLayout>
<StackLayout>
<Image Source="http://brtuning.com.br/images/logoliec.png" />
<Label
Text="Atuador MQTT"
HorizontalOptions="Center"
FontAttributes="Bold"
TextColor="Black"
Margin="0,20,0,0"
FontSize="20"/>
<Button Clicked="Button_ClickedAsync" Text="Conectar" x:Name="Botao1"/>
<Label
Text="Ar-condicionado"
HorizontalOptions="Center"
FontAttributes="Bold"
TextColor="Black"
FontSize="14"/>
<StackLayout Orientation="Horizontal" HorizontalOptions="Center">
<Button Clicked="Button_Clicked_ArONAsync" Text="ON" x:Name="arON"/>
<Button Clicked="Button_Clicked_ArOFFAsync" Text="OFF" x:Name="arOFF"/>
<StackLayout Orientation="Vertical" VerticalOptions="Center">
<Entry Text="Temperatura: 18 a 28" Keyboard="Numeric"
x:Name="setPointText"/>
<Button Clicked="Button_Clicked_SetPointAsync" Text="Set Point"
x:Name="arSetPoint"/>
</StackLayout>
</StackLayout>
<Label Text="Cortina"
HorizontalOptions="Center"
FontAttributes="Bold"
TextColor="Black"
FontSize="14"/>
<StackLayout Orientation="Horizontal" HorizontalOptions="Center">
<Button Clicked="Button_Clicked_CUPAsync" Text="UP" x:Name="botaoCUP"/>
<Button Clicked="Button_Clicked_CDOWNAsync" Text="DOWN"
x:Name="botaoCDOWN"/>
<Button Clicked="Button_Clicked_CSTOPAsync" Text="STOP"
x:Name="botaoCSTOP"/>
</StackLayout>
<Button Clicked="Button_Clicked_configAvanc"
Text="Configurações Avançadas"
x:Name="BotaoConfigAvanc"/>
</StackLayout>
<BoxView x:Name="boxViewDarkTrans" IsVisible="False"
AbsoluteLayout.LayoutBounds="1,1,1,1"
AbsoluteLayout.LayoutFlags="All"
Color="#99000000"/>
<StackLayout x:Name="layoutConfigAvanc" BackgroundColor="White" IsVisible="False"
AbsoluteLayout.LayoutBounds="0.5,0.5"
AbsoluteLayout.LayoutFlags="PositionProportional"
Padding="20">
<Label Text="Configurações Avançadas" HorizontalOptions="Center"
FontAttributes="Bold" FontSize="20" Margin="0,0,0,20"/>
<Label Text="Tópico"/>
<Entry x:Name="entryTopico"/>
<Label Text="Broker"/>
<Entry x:Name="entryBroker"/>
<StackLayout HorizontalOptions="Center" Orientation="Horizontal">
<Button Text="Ok" x:Name="okConfigAvanc"
Clicked="Button_Clicked_okConfigAvanc"/>
<Button Text="Cancelar" x:Name="cancelarConfigAvanc"
Clicked="Button_Clicked_cancelarConfigAvanc"/>
</StackLayout>
</StackLayout>
</AbsoluteLayout>
</ContentPage>