public override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your fragment here groupName = Arguments.GetString("group"); clients = ConnectionManager.Current.Clients.Where(x => x.Group == groupName).ToList(); ListAdapter = new ClientListItem_Adapter(Activity, clients); ConnectionManager.Current.ClientDisconnected += ConnectionManager_Current_ClientDisconnected; ConnectionManager.Current.ClientConnected += ConnectionManager_Current_ClientConnected; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here ConnectionManager.Current.AttackOpened += ConnectionManager_Current_AttackOpened;; ConnectionManager.Current.Disconnected += ConnectionManager_Current_Disconnected; ListAdapter = new ClientListItem_Adapter(this, ConnectionManager.Current.Clients); ConnectionManager.Current.ClientListChanged += ConnectionManager_Current_ClientListChanged; //ListView.ItemLongClick += ListView_ItemLongClick; RegisterForContextMenu(ListView); }