示例#1
0
        void Initialize()
        {
            tableSource = new ServiceTableSource();

            tableSource.ServiceSelected += (object sender, ServiceSelectedEventArgs e) => {
                serviceDetailsScreen = (ServiceDetailsScreen)Storyboard.InstantiateViewController("ServiceDetailsScreen");
                serviceDetailsScreen.SetPeripheralAndService(connectedPeripheral, e.Service);
                NavigationController.PushViewController(serviceDetailsScreen, true);
            };
        }
		void Initialize ()
		{
			tableSource = new ServiceTableSource ();

			tableSource.ServiceSelected += (object sender, ServiceSelectedEventArgs e) => {
				serviceDetailsScreen = (ServiceDetailsScreen)Storyboard.InstantiateViewController ("ServiceDetailsScreen");
				serviceDetailsScreen.SetPeripheralAndService (connectedPeripheral, e.Service);
				NavigationController.PushViewController (serviceDetailsScreen, true);
			};
		}