private void JoinButton_Click(object sender, EventArgs e) { if (Custom == null) { return; } Chat.JoinRoom(Custom); }
private void JoinButton_Click(object sender, EventArgs e) { Chat.JoinRoom(Room); // show the user the transfer starting if (UI.GuiMain is MainForm && !((MainForm)UI.GuiMain).SideMode) { UI.ShowView(new ChatView(UI, Chat, 0) { Custom = Room }, false); } else { ExternalView view = UI.GuiMain.FindViewType(typeof(ChatView)); if (view == null) { UI.ShowView(new ChatView(UI, Chat, 0) { Custom = Room }, true); } else { ((ChatView)view.Shell).SetCustomRoom(Room); view.WindowState = FormWindowState.Normal; view.Activate(); } } Close(); }