-using System;
+using SettingCore;
+using System;
using System.Collections.Generic;
using System.Text;
using Tizen;
};
//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);
- DialogPage.ShowAlertDialog("Disconnect device", String.Format("This will end your connection with { 0 }.", btDevice.Name), cancelButton, disconnectButton);
+ SettingCore.RoundedDialogPage.ShowAlertDialog("Disconnect device", String.Format("This will end your connection with { 0 }.", btDevice.Name), cancelButton, disconnectButton);
}
internal static void ConnectA2dp(BtDevice device)
protected override View OnCreate()
{
+ Log.Info(LogTag, "OnCreate");
base.OnCreate();
+ Resources.SetPath(GetResourcePath("/"));
return BtMainView.Create();
}
protected override void OnAppControlReceived(AppControlReceivedEventArgs e)
{
+ Log.Info(LogTag, "OnAppControlReceived");
base.OnAppControlReceived(e);
}
protected override void OnPause()
{
+ Log.Info(LogTag, "OnPause");
base.OnPause();
MainView.Hide();
}
protected override void OnResume()
{
+ Log.Info(LogTag, "OnResume");
base.OnResume();
MainView.Show();
}
protected override void OnDestroy()
{
+ Log.Info(LogTag, "OnDestroy");
base.OnDestroy();
}
protected override void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
{
+ Log.Info(LogTag, "OnDeviceOrientationChanged");
base.OnDeviceOrientationChanged(e);
}
protected override void OnLocaleChanged(LocaleChangedEventArgs e)
{
+ Log.Info(LogTag, "OnLocaleChanged");
base.OnLocaleChanged(e);
}
protected override void OnLowBattery(LowBatteryEventArgs e)
{
+ Log.Info(LogTag, "OnLowBattery");
base.OnLowBattery(e);
}
protected override void OnLowMemory(LowMemoryEventArgs e)
{
+ Log.Info(LogTag, "OnLowMemory");
base.OnLowMemory(e);
}
protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
{
+ Log.Info(LogTag, "OnRegionFormatChanged");
base.OnRegionFormatChanged(e);
}
}
-using System;
+using SettingCore;
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
{
public class Device : INotifyPropertyChanged
{
- private string mResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
+ private string mResourcePath = Resources.GetPath();
+ //private string mResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
private string mIconDir;
private string mAddress;
private string mName;
--- /dev/null
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace SettingBluetooth
+{
+ static class Resources
+ {
+ static private string mResourcePath = "";
+
+ static public void SetPath(string path)
+ {
+ mResourcePath = path;
+ }
+ static public string GetPath()
+ {
+ return mResourcePath;
+ }
+ }
+}