void Initialize()
 {
     IntervalSevice = new IntervalService();
     SoundService = new SoundService();
 }
예제 #2
0
            /*
            // Override to support conditional editing of the table view.
            public override bool CanEditRow (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
            {
                // Return false if you do not want the specified item to be editable.
                return true;
            }
            */
            /*
            // Override to support editing the table view.
            public override void CommitEditingStyle (UITableView tableView, UITableViewCellEditingStyle editingStyle, MonoTouch.Foundation.NSIndexPath indexPath)
            {
                if (editingStyle == UITableViewCellEditingStyle.Delete) {
                    controller.TableView.DeleteRows (new NSIndexPath[] { indexPath }, UITableViewRowAnimation.Fade);
                } else if (editingStyle == UITableViewCellEditingStyle.Insert) {
                    // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view.
                }
            }
            */
            /*
            // Override to support rearranging the table view.
            public override void MoveRow (UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
            {
            }
            */
            /*
            // Override to support conditional rearranging of the table view.
            public override bool CanMoveRow (UITableView tableView, NSIndexPath indexPath)
            {
                // Return false if you do not want the item to be re-orderable.
                return true;
            }
            */
            // Override to support row selection in the table view.
            public override void RowSelected(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
            {
                // Navigation logic may go here -- for example, create and push another view controller.
                // var anotherViewController = new AnotherViewController ("AnotherView", null);
                //controller.NavigationController.PushViewController (anotherViewController, true);

                var sservice = new SoundService();
                sservice.PlayStart();

                var c = new IntervalDetaiViewController("IntervalDetaiViewController", NSBundle.MainBundle);
                Interval interval = controller.Service.GetInterval(indexPath.Section);
                c.Item = interval;
                //tableView.DeselectRow(indexPath,true);
                controller.NavigationController.PushViewController(c,true);
            }