Remove deprecated API usage.
Change-Id: If3043e217f6843776cd0d1fab7e9a6b6aa71c8a6
int currentIndex = manager.Languages.FindIndex(x => x == manager.CurrentLanguage);
carousel.SelectedItemIndex = currentIndex;
- container.NextButton.ClickEvent += (obj, args) =>
+ container.NextButton.Clicked += (obj, args) =>
{
if (carousel.SelectedItemIndex >= 0 && carousel.SelectedItemIndex < manager.Languages.Count)
{
carousel.AddItem(item);
}
- container.NextButton.ClickEvent += (obj, args) => {
+ container.NextButton.Clicked += (obj, args) => {
if (carousel.SelectedItemIndex >= 0 && carousel.SelectedItemIndex < manager.Regions.Count)
{
var region = manager.Regions[carousel.SelectedItemIndex];
nav.Next();
};
- container.PreviousButton.ClickEvent += (obj, args) => {
+ container.PreviousButton.Clicked += (obj, args) => {
nav.Previous();
};
NextButton.State = States.Disabled;
NextButton.IsEnabled = false;
- NextButton.ClickEvent += (obj, args) =>
+ NextButton.Clicked += (obj, args) =>
{
terms.AcceptTerms();
nav.Next();
};
- PreviousButton.ClickEvent += (obj, args) =>
+ PreviousButton.Clicked += (obj, args) =>
{
nav.Previous();
};
agreeSwitch.Margin = new Extents(0, 0, 0, 2);
agreeSwitch.IsSelected = false;
agreeSwitch.IsEnabled = false;
- agreeSwitch.ClickEvent += (obj, args) =>
+ agreeSwitch.Clicked += (obj, args) =>
{
TermsToggle();
};
content.Text = "There should be some description or information about Tizen IoT. There should be some description or information about Tizen IoT. There should be some description or information about Tizen IoT. There should be some description or information about Tizen IoT. There should be some description or information about Tizen IoT. There should be some description or information about Tizen IoT. There should be some description or information about Tizen IoT. There should be some description or information about Tizen IoT.";\r
\r
container.NextButton.TranslatableText = "GET_STARTED";\r
- container.NextButton.ClickEvent += (obj, args) => {\r
+ container.NextButton.Clicked += (obj, args) => {\r
nav.Finish();\r
};\r
\r
Size = new Size(32, 32),
Position = position,
};
- button.ClickEvent += (s, e) =>
+ button.Clicked += (s, e) =>
{
this.passwordEntry.Revealed = !this.passwordEntry.Revealed;
button.IsSelected = !button.IsSelected;
{
Size = new Size(240, 72)
};
- cancelButton.ClickEvent += (s, e) => OnDismiss?.Invoke();
+ cancelButton.Clicked += (s, e) => OnDismiss?.Invoke();
this.Add(cancelButton);
addButton = new Button(ButtonStyles.OK)
Size = new Size(240, 72),
TranslatableText = "WIFI_ADD"
};
- addButton.ClickEvent += async (s, e) =>
+ addButton.Clicked += async (s, e) =>
{
Tizen.Log.Debug("oobe", $"Scanning for SSID = {ssidTextField.Text}");
IEnumerable<WiFiAP> aps = null;
Position = new Position(80, 344),
Size = new Size(240, 72),
};
- cancelButton.ClickEvent += (s, e) =>
+ cancelButton.Clicked += (s, e) =>
{
WifiUISecurityType = originalWifUISecurityType;
OnDismiss?.Invoke();
TranslatableText = "WIFI_OK"
};
- addButton.ClickEvent += (s, e) =>
+ addButton.Clicked += (s, e) =>
{
OnDismiss?.Invoke();
};
view.Button.IsSelected = true;
}
radioButtonGroup.Add(view.Button);
- view.Button.ClickEvent += (s, e) => this.WifiUISecurityType = view.WifiUISecurityType;
+ view.Button.Clicked += (s, e) => this.WifiUISecurityType = view.WifiUISecurityType;
return view;
}
}
Size = new Size(48, 48),
Position = new Position(720, 79),
};
- revealButton.ClickEvent += (s, e) => TogglePasswordVisibility();
+ revealButton.Clicked += (s, e) => TogglePasswordVisibility();
this.Add(revealButton);
cancelButton = new Button(ButtonStyles.Cancel)
Size = new Size(240, 72),
Position = new Position(80, 175)
};
- cancelButton.ClickEvent += (s, e) =>
+ cancelButton.Clicked += (s, e) =>
{
OnDismiss.Invoke();
};
Position = new Position(488, 175),
IsEnabled = false
};
- okButton.ClickEvent += async (s, e) =>
+ okButton.Clicked += async (s, e) =>
{
isConnecting = true;
UpdateOKButton();
Size = new Size(42, 42),
};
- addNewButton.ClickEvent += (s, e) => ShowAddNetworkPopup();
+ addNewButton.Clicked += (s, e) => ShowAddNetworkPopup();
manualWifi.Add(addNewButton);
manualWifi.Add(new TextLabel()
Size = new Size(72, 32),
Position = new Position(276, 39),
};
- scan.ClickEvent += async (s, e) =>
+ scan.Clicked += async (s, e) =>
{
scan.IsEnabled = false;
ApManager.Views.Clear();
State.OnTurnedOff += () => button.IsSelected = State.IsTurnedOn;
State.OnTurnedOn += () => button.IsSelected = State.IsTurnedOn;
- button.ClickEvent += async (s, e) =>
+ button.Clicked += async (s, e) =>
{
button.IsEnabled = false;
await State.TurnWifi();
view.Content = wifiView.View;
- view.PreviousButton.ClickEvent += (s, e) => nav.Previous();
- view.NextButton.ClickEvent += (s, e) => nav.Next();
+ view.PreviousButton.Clicked += (s, e) => nav.Previous();
+ view.NextButton.Clicked += (s, e) => nav.Next();
void applyStyle(bool isConnected) => view.NextButton.ApplyStyle(isConnected
? Common.Styles.ButtonStyles.Next