public override void OnCreate() { base.OnCreate(); // List // TaskMgr = new TodoItemManager(); // XML // var sqliteFilename = "TaskDB.xml"; // string libraryPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); // var path = Path.Combine(libraryPath, sqliteFilename); // var xmlStorage = new AndroidTodo.XmlStorageImplementation (); // TaskMgr = new TodoItemManager(path, xmlStorage); // SQL // var sqliteFilename = "TaskDB.db3"; // string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder // var path = Path.Combine(documentsPath, sqliteFilename); // var conn = new Connection(path); // TaskMgr = new TodoItemManager(conn); // AZURE TaskMgr = new TodoItemManager(AzureStorageImplementation.DefaultService); // PARSE // TaskMgr = new TodoItemManager(ParseStorageImplementation.Default); }
public override void OnCreate() { base.OnCreate(); // TODO: pick which storage library you wish to use... // List // TaskMgr = new TodoItemManager(); // XML // var sqliteFilename = "TodoList.xml"; // string libraryPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); // var path = Path.Combine(libraryPath, sqliteFilename); // var xmlStorage = new AndroidTodo.XmlStorageImplementation (); // TaskMgr = new TodoItemManager(path, xmlStorage); // ADO.NET var sqliteFilename = "TodoADODB.db3"; string documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); // Documents folder string libraryPath = Path.Combine(documentsPath, "..", "Library"); // Library folder var path = Path.Combine(libraryPath, sqliteFilename); var db = new ADODatabase(path); TaskMgr = new TodoItemManager(db); // SQLite // var sqliteFilename = "TodoSqliteDB.db3"; // string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder // var path = Path.Combine(documentsPath, sqliteFilename); // var conn = new Connection(path); // TaskMgr = new TodoItemManager(conn); }
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions) { Current = this; // LIST // TaskMgr = new TodoItemManager(); // XML // var sqliteFilename = "TaskDB.xml"; // string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder // string libraryPath = Path.Combine (documentsPath, "..","Library"); // Library folder // var path = Path.Combine(libraryPath, sqliteFilename); // var xmlStorage = new XmlStorageImplementation (); // TaskMgr = new TodoItemManager(path, xmlStorage); // SQL var sqliteFilename = "TaskDB.db3"; string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder string libraryPath = Path.Combine (documentsPath, "..", "Library"); // Library folder var path = Path.Combine(libraryPath, sqliteFilename); var conn = new Connection(path); TaskMgr = new TodoItemManager(conn); return true; }
/// <summary> /// Constructor for the Application object. /// </summary> public App() { // Global handler for uncaught exceptions. UnhandledException += Application_UnhandledException; // Standard Silverlight initialization InitializeComponent(); // Phone-specific initialization InitializePhoneApplication(); // TODO: pick which storage library you wish to use... // LIST //TodoMgr = new TodoItemManager(); // XML var filename = "TodoList.xml"; var xmlStorage = new XmlStorageImplementation(); TodoMgr = new TodoItemManager(filename, xmlStorage); // ADO.NET // NOT SUPPORTED IN WINDOWS PHONE 8 // SQLite //var sqliteFilename = "TodoSqliteDB.db3"; //var conn = new Connection(sqliteFilename); //TodoMgr = new TodoItemManager(conn); // Show graphics profiling information while debugging. if (System.Diagnostics.Debugger.IsAttached) { // Display the current frame rate counters. Application.Current.Host.Settings.EnableFrameRateCounter = true; // Show the areas of the app that are being redrawn in each frame. //Application.Current.Host.Settings.EnableRedrawRegions = true; // Enable non-production analysis visualization mode, // which shows areas of a page that are handed off to GPU with a colored overlay. //Application.Current.Host.Settings.EnableCacheVisualization = true; // Disable the application idle detection by setting the UserIdleDetectionMode property of the // application's PhoneApplicationService object to Disabled. // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run // and consume battery power when the user is not using the phone. PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; } }
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions) { Current = this; // TODO: pick which storage library you wish to use... // LIST // TaskMgr = new TodoItemManager(); // XML // var sqliteFilename = "TodoList.xml"; // string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder // string libraryPath = Path.Combine (documentsPath, "..","Library"); // Library folder // var path = Path.Combine(libraryPath, sqliteFilename); // var xmlStorage = new XmlStorageImplementation (); // TaskMgr = new TodoItemManager(path, xmlStorage); // ADO.NET var sqliteFilename = "TodoADODB.db3"; string documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); // Documents folder string libraryPath = Path.Combine(documentsPath, "..", "Library"); // Library folder var path = Path.Combine(libraryPath, sqliteFilename); var db = new ADODatabase(path); TaskMgr = new TodoItemManager(db); // SQLite //var sqliteFilename = "TodoSQLiteDB.db3"; //string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder //string libraryPath = Path.Combine (documentsPath, "..", "Library"); // Library folder //var path = Path.Combine(libraryPath, sqliteFilename); //var conn = new Connection(path); //TaskMgr = new TodoItemManager(conn); return true; }