private async Task F_DMOpen(ulong arg) { Hide(); textArea.Show(); mainForm.UnHide(); server.ChangeChannel(new SocketChannel(arg)); textArea.Controls.Clear(); if (server.CurrentUser.SelectedChannel.Messages != null) { foreach (SocketMessage message in server.CurrentUser.SelectedChannel.Messages) { Better_Forms.User_Control.Main_Form.Message m = new Better_Forms.User_Control.Main_Form.Message(message, textArea, server, mainForm); m.RefreshChat += M_RefreshChat; textArea.Controls.Add(m); } } }
private async Task X_DMOpen(ulong arg) { if (fm != null) { fm.Hide(); TextArea.Show(); textBoxWithWaterMark1.Show(); } scorpion.ChangeChannel(new SocketChannel(arg)); TextArea.Controls.Clear(); if (scorpion.CurrentUser.SelectedChannel.Messages != null) { foreach (SocketMessage message in scorpion.CurrentUser.SelectedChannel.Messages) { Better_Forms.User_Control.Main_Form.Message m = new Better_Forms.User_Control.Main_Form.Message(message, TextArea, scorpion, this); m.RefreshChat += RefreshChat; TextArea.Controls.Add(m); } } }