private void LoadSettingsFromUI() { bluetoothDeviceName = deviceNameListBoxItem.TextBoxText; iOSPortName = iOSPortNameListBoxItem.TextBoxText; securityType = securityListBoxItem.SelectedBluetoothSecurity; autoConnect = autoConnectListBoxItem.CheckBoxIsChecked; changePinCode = changePinCodeListBoxItem.CheckBoxIsChecked; newPinCode = newPinCodeListBoxItem.TextBoxText; }
private int GetBluetoothSecurityIndex(StarBluetoothManager.StarBluetoothSecurity securityType) { int index = 0; foreach (BluetoothSecurityTypeManager security in bluetoothSecurities) { if (security.Type == securityType) { return(index); } index++; } return(0); }
public BluetoothSecurityTypeManager(StarBluetoothManager.StarBluetoothSecurity type) { Type = type; }