Position = new Position(new Position2D(236, 116));
this.wifiAp = wifiAp;
+ this.Add(new View() //underline
+ {
+ Size = new Size(584, 1),
+ Position = new Position(103, 160),
+ BackgroundColor = new Color(0xC3 / 255.0f, 0xCA / 255.0f, 0xD2 / 255.0f, 1.0f),
+ });
+
passwordEntry = new PasswordEntry()
{
- Size = new Size(584, 22),
+ Size = new Size(584, 26),
Position = new Position(112, 134),
MaxLength = maxPasswordLength,
PixelSize = 22,
this.Add(passwordEntry);
- this.Add(new View() //underline
- {
- Size = new Size(584, 1),
- Position = new Position(103, 160),
- BackgroundColor = new Color(0xC3 / 255.0f, 0xCA / 255.0f, 0xD2 / 255.0f, 1.0f),
- });
-
var titleLabel = new TextLabel
{
Size = new Size(808, 35),
};
okButton.ClickEvent += async (s, e) =>
{
+ bool success = false;
isConnecting = true;
UpdateOKButton();
try
{
Tizen.Log.Debug("oobe", $"connecting to wifi {wifiAp.NetworkInformation.Essid} with password {Password}");
wifiAp.SecurityInformation.SetPassphrase(Password);
- var result = await (wifiAp.ConnectAsync() as Task<bool>);
- if (result == true)
- {
- OobeCommon.Utils.Popup.Dismiss();
- }
+ success = await (wifiAp.ConnectAsync() as Task<bool>);
}
catch (Exception ex)
{
{
isConnecting = false;
UpdateOKButton();
- connectionFailure.Show();
+ if (success == true)
+ {
+ OobeCommon.Utils.Popup.Dismiss();
+ }
+ else
+ {
+ connectionFailure.Show();
+ }
}
};
this.Add(okButton);