Ejemplo n.º 1
0
        public void TestService()
        {
            IntervalService service = new IntervalService();
            Interval interval = new Interval();
            interval.Description = "Hello World";

            //service.Insert(interval);
        }
Ejemplo n.º 2
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            base.FinishedLaunching(app, options);

            IntervalService service = new IntervalService();
            service.InitData();

            //SoundService sservice = new SoundService();
            //sservice.PlayCountDown();

            AudioSession.Initialize();
            AudioSession.Category = AudioSessionCategory.MediaPlayback;
            AudioSession.SetActive(true);

            window.AddSubview (navigationController.View);
            window.MakeKeyAndVisible ();

            return true;
        }
Ejemplo n.º 3
0
        public void AllIntervals()
        {
            IntervalService service = new IntervalService();

            Interval interval = new Interval();

            //	service.Insert(interval);

            //	List<Interval> intervals = service.FindAll();

            /*	var conn = new SqliteConnection("Data Source=intervals;Version=3;Legacy Format=True;");

              			using (var cmd = conn.CreateCommand())

            {

              				conn.Open();

              			//	cmd.CommandText ="SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;";

            */
        }
 void Initialize()
 {
     IntervalSevice = new IntervalService();
     SoundService = new SoundService();
 }
Ejemplo n.º 5
0
 public RootViewController(IntPtr handle)
     : base(handle)
 {
     Service = new IntervalService();
 }