Exemplo n.º 1
0
		protected override List<IChildItem> OnCreateChildList ()
		{
			ssidItem = new ItemWithCharacterInput("SSID", "Enter SSID", FirmwareSettings.WiFiSettings.SSID, OnSsidChanged,false, true , false);
			passwordItem = new ItemWithCharacterInput("Password", "Password", FirmwareSettings.WiFiSettings.Password, OnPasswordChanged, true, true, false);
			encryptionItem = new ItemWithOptions<string>("Encryption", new string[]{"None","WPA/2"}, OnEncryptionOptionChanged, FirmwareSettings.WiFiSettings.Encryption ? 1 : 0);
			connectItem = new TurnWiFiOnOffCheckBox ();
			var childList = new List<IChildItem> ();
			childList.Add (ssidItem);
			childList.Add (passwordItem);
			childList.Add (encryptionItem);
			childList.Add (connectItem);
			return childList;
		}
Exemplo n.º 2
0
        protected override List <IChildItem> OnCreateChildList()
        {
            ssidItem       = new ItemWithCharacterInput("SSID", "Enter SSID", FirmwareSettings.WiFiSettings.SSID, OnSsidChanged, false, true, false);
            passwordItem   = new ItemWithCharacterInput("Password", "Password", FirmwareSettings.WiFiSettings.Password, OnPasswordChanged, true, true, false);
            encryptionItem = new ItemWithOptions <string>("Encryption", new string[] { "None", "WPA/2" }, OnEncryptionOptionChanged, FirmwareSettings.WiFiSettings.Encryption ? 1 : 0);
            connectItem    = new TurnWiFiOnOffCheckBox();
            var childList = new List <IChildItem> ();

            childList.Add(ssidItem);
            childList.Add(passwordItem);
            childList.Add(encryptionItem);
            childList.Add(connectItem);
            return(childList);
        }