private void On_LoginUser(string username) { Client.Username = username; var chat = new SuperDuperChat(); chat.Location = Location; chat.StartPosition = StartPosition; chat.Show(); this.Hide(); }
public PrivateMessageForm(string username, SuperDuperChat p) { InitializeComponent(); this.Parent = p; Recipient = username; Text = username; this.FormBorderStyle = FormBorderStyle.FixedSingle; ResponseHandler.PrivateHistoryReceived += (user, history) => Invoke(new Action <string, ChatMessage[]>(PrependHistory), user, history); }