PopDialog();
};
- //DialogPage.ShowAlertDialog(Resources.IDS_BT_HEADER_DISCONNECT_DEVICE_ABB, String.Format(Resources.IDS_WMGR_POP_THIS_WILL_END_YOUR_CONNECTION_WITH_PS, btDevice.Name), cancelButton, disconnectButton);
- SettingCore.RoundedDialogPage.ShowAlertDialog("Disconnect device", String.Format("This will end your connection with {0}.", btDevice.Name), cancelButton, disconnectButton);
+ SettingCore.RoundedDialogPage.ShowAlertDialog(Resources.IDS_BT_HEADER_DISCONNECT_DEVICE_ABB, String.Format(Resources.IDS_WMGR_POP_THIS_WILL_END_YOUR_CONNECTION_WITH_PS, btDevice.Name), cancelButton, disconnectButton);
}
internal static void ConnectA2dp(BtDevice device)
{
var disconnectButton = new Button()
{
- //Text = Resources.IDS_BT_SK_DISCONNECT,
- Text = "Disconnect",
+ Text = Resources.IDS_BT_SK_DISCONNECT,
};
disconnectButton.Clicked += (obj, ev) =>
{
{
var disconnectButton = new Button()
{
- //Text = Resources.IDS_BT_SK_DISCONNECT,
- Text = "Disconnect",
+ Text = Resources.IDS_BT_SK_DISCONNECT,
};
disconnectButton.Clicked += (obj, ev) =>
{
var appBar = new AppBar()
{
- //Title = Resources.IDS_BT_BODY_DETAILS,
- Title = "Details",
+ Title = Resources.IDS_BT_BODY_DETAILS,
};
mDetailView = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
Text = device.Name,
- //SubText = Resources.IDS_BT_BODY_DEVICENAME,
- SubText = "Device name",
+ SubText = Resources.IDS_BT_BODY_DEVICENAME,
};
mBtDeviceName = device.Name;
deviceName.Clicked += OnDeviceNameClicked;
var unpairButton = new DefaultLinearItem()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- //Text = Resources.IDS_BT_OPT_UNPAIR,
- Text = "Unpair",
+ Text = Resources.IDS_BT_OPT_UNPAIR,
};
unpairButton.Clicked += (obj, ev) =>
{
var connOption = new DefaultLinearItem()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- //Text = Resources.IDS_BT_BODY_CONNECTION_OPTIONS,
- Text = "Connection options",
+ Text = Resources.IDS_BT_BODY_CONNECTION_OPTIONS,
};
mDetailView.Add(connOption);
var mediaAudioItem = new DefaultLinearItem()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- //Text = Resources.IDS_BT_BODY_MEDIA_AUDIO,
- Text = "Media audio",
+ Text = Resources.IDS_BT_BODY_MEDIA_AUDIO,
};
var mediaAudioSwitch = new Switch()
{
public DeviceSource()
{
Log.Info(SettingBluetooth.LogTag, "DeviceSource created");
- //mSearched = new DeviceCollection(Resources.IDS_BT_BODY_SCANNING_FOR_DEVICES_ING);
- mSearched = new DeviceCollection("Scanning for devices...");
- //mPaired = new DeviceCollection(Resources.IDS_BT_BODY_PAIRED_DEVICES);
- mPaired = new DeviceCollection("Paired devices");
+ mSearched = new DeviceCollection(Resources.IDS_BT_BODY_SCANNING_FOR_DEVICES_ING);
+ mPaired = new DeviceCollection(Resources.IDS_BT_BODY_PAIRED_DEVICES);
this.Add(mSearched);
}
break;
case BtDeviceState.Pairing:
case BtDeviceState.Connecting:
- //device.State = Resources.IDS_BT_SBODY_CONNECTING_ING;
- device.State = "Connecting...";
+ device.State = Resources.IDS_BT_SBODY_CONNECTING_ING;
break;
case BtDeviceState.Unpairing:
case BtDeviceState.Disconnecting:
- //device.State = Resources.IDS_BT_BODY_DISCONNECTING;
- device.State = "Disconnecting";
+ device.State = Resources.IDS_BT_BODY_DISCONNECTING;
break;
case BtDeviceState.Paired:
- //device.State = Resources.IDS_BT_BODY_PAIRED;
- device.State = "Paired";
+ device.State = Resources.IDS_BT_BODY_PAIRED;
break;
case BtDeviceState.Connected:
- //device.State = Resources.IDS_BT_SBODY_CONNECTED_M_STATUS;
- device.State = "Connected";
+ device.State = Resources.IDS_BT_SBODY_CONNECTED_M_STATUS;
break;
case BtDeviceState.ServiceSearching:
- //device.State = Resources.IDS_BT_POP_SEARCHING_SERVICES_ING;
- device.State = "Searching services...";
+ device.State = Resources.IDS_BT_POP_SEARCHING_SERVICES_ING;
break;
}
//Log.Info(LogTag, "Device(" + btDevice.Address + ") updated. state: " + device.State);
mScanButton = new Button
{
- //Text = Resources.IDS_BT_SK_SCAN,
- Text = "Scan",
+ Text = Resources.IDS_BT_SK_SCAN,
};
mScanButton.Clicked += AdapterController.ScanButtonClicked;
view.Add(mScanButton);
break;
case BtOperationState.Searching:
BtDeviceView.RemoveAllSearchedDevices();
- //BtDeviceView.UpdateSearchedTitle(Resources.IDS_BT_BODY_SCANNING_FOR_DEVICES_ING);
- //BtDeviceView.UpdateScanButtonText(Resources.IDS_BT_SK_STOP);
- BtDeviceView.UpdateSearchedTitle("Scanning for devices...");
- BtDeviceView.UpdateScanButtonText("Stop");
+ BtDeviceView.UpdateSearchedTitle(Resources.IDS_BT_BODY_SCANNING_FOR_DEVICES_ING);
+ BtDeviceView.UpdateScanButtonText(Resources.IDS_BT_SK_STOP);
break;
case BtOperationState.Searched:
- //BtDeviceView.UpdateSearchedTitle(Resources.IDS_BT_BODY_AVAILABLE_DEVICES);
- //BtDeviceView.UpdateScanButtonText(Resources.IDS_BT_SK_SCAN);
- BtDeviceView.UpdateSearchedTitle("Available devices");
- BtDeviceView.UpdateScanButtonText("Scan");
+ BtDeviceView.UpdateSearchedTitle(Resources.IDS_BT_BODY_AVAILABLE_DEVICES);
+ BtDeviceView.UpdateScanButtonText(Resources.IDS_BT_SK_SCAN);
break;
case BtOperationState.Pairing:
break;
var onOffItem = new DefaultLinearItem
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- //Text = Resources.IDS_BT_BODY_BLUETOOTH,
- Text = "Bluetooth",
+ Text = Resources.IDS_BT_BODY_BLUETOOTH,
};
onOffItem.Label.HorizontalAlignment = HorizontalAlignment.Begin;
{
return mResourcePath;
}
+
+ static public string IDS_BT_BODY_SCANNING_FOR_DEVICES_ING = "Scanning for devices...";
+ static public string IDS_BT_SK_STOP = "Stop";
+ static public string IDS_BT_BODY_AVAILABLE_DEVICES = "Available devices";
+ static public string IDS_BT_SK_SCAN = "Scan";
+ static public string IDS_BT_BODY_BLUETOOTH = "Bluetooth";
+ static public string IDS_BT_BODY_PAIRED_DEVICES = "Paired devices";
+ static public string IDS_BT_SBODY_CONNECTING_ING = "Connecting...";
+ static public string IDS_BT_BODY_DISCONNECTING = "Disconnecting";
+ static public string IDS_BT_BODY_PAIRED = "Paired";
+ static public string IDS_BT_SBODY_CONNECTED_M_STATUS = "Connected";
+ static public string IDS_BT_POP_SEARCHING_SERVICES_ING = "Searching services...";
+ static public string IDS_BT_BODY_DETAILS = "Details";
+ static public string IDS_BT_BODY_DEVICENAME = "Device name";
+ static public string IDS_BT_OPT_UNPAIR = "Unpair";
+ static public string IDS_BT_BODY_CONNECTION_OPTIONS = "Connection options";
+ static public string IDS_BT_BODY_MEDIA_AUDIO = "Media audio";
+ static public string IDS_BT_SK_DISCONNECT = "Disconnect";
+ static public string IDS_BT_HEADER_DISCONNECT_DEVICE_ABB = "Disconnect device";
+ static public string IDS_WMGR_POP_THIS_WILL_END_YOUR_CONNECTION_WITH_PS = "This will end your connection with {0}.";
}
}