public void on_mnuChatJoinRoom_activate(object o, EventArgs e) { if (selectedRoom.InRoom == false) { Gui.JoinChatRoom(selectedRoom); } else { (selectedRoom.Properties["Window"] as ChatRoomSubpage).GrabFocus(); } }
private void chatList_RowActivated(object o, RowActivatedArgs args) { TreeIter iter; if (chatTreeStore.GetIter(out iter, args.Path) == true) { object item = chatTreeStore.GetValue(iter, 0); if (item is ChatRoom) { ChatRoom room = (ChatRoom)item; Gui.JoinChatRoom(room); } } }
private void joinButton_Clicked(object sender, EventArgs args) { Window.Destroy(); Gui.JoinChatRoom(room, passwordEntry.Text); }