示例#1
0
        //private TunnelInstance tunnel = TunnelInstance.Instance;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.ClientList);
            listAdapter = new ClientListAdapter(this);
            ListView listView = FindViewById <ListView>(Resource.Id.list_view);            //attach adapter to listview

            listView.Adapter = listAdapter;
            //tunnel.ClientConnected += OnClientConnected;
            //tunnel.ClientDisconnected += OnClientDisconnected;
            RegisterForContextMenu(listView);
        }
		//private TunnelInstance tunnel = TunnelInstance.Instance;
				
		protected override void OnCreate(Bundle bundle)
		{
			base.OnCreate(bundle);
			
			SetContentView(Resource.Layout.ClientList);
			listAdapter = new ClientListAdapter(this);
			ListView listView = FindViewById<ListView>(Resource.Id.list_view); //attach adapter to listview
			listView.Adapter = listAdapter;
			//tunnel.ClientConnected += OnClientConnected;
			//tunnel.ClientDisconnected += OnClientDisconnected;
			RegisterForContextMenu(listView);

		}