Beispiel #1
0
        private void On_LoginUser(string username)
        {
            Client.Username = username;
            var chat = new SuperDuperChat();

            chat.Location      = Location;
            chat.StartPosition = StartPosition;
            chat.Show();
            this.Hide();
        }
Beispiel #2
0
        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);
        }