private void infoButton_Click(object sender, EventArgs e) { var onlineUsers = new InfoShow() { roomAccounts = roomAccounts, infoType = "users", accounts = controlAccounts, room = this }; onlineUsers.Show(); }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var publicRooms = chatRooms.Find(s => s.state).ToList(); var roomsShow = new InfoShow() { infoType = "rooms", publicRooms = publicRooms }; roomsShow.Show(); }