private void l_profiles_ItemClick(object sender, ItemClickEventArgs e) { TClientProfile profile = (TClientProfile)e.ClickedItem; if (profile.State == ConnectionState.Disconnected) { Task.Run(() => client.ConnectAsync(profile.LastIPAddress)); } }
private void l_profiles_ItemClick(object sender, ItemClickEventArgs e) { TClientProfile profile = (TClientProfile)e.ClickedItem; if (profile.State == ConnectionState.Disconnected) { Task.Run(() => client.ConnectAsync(profile.LastIPAddress)); } }