Beispiel #1
0
        private void btnSend_Click(object sender, EventArgs e)
        {
            var colorDialog = new ColorDialog();
            var message     = new Shared.Models.Message()
            {
                ComposerID = this.Profile.ProfileID,
                Settings   = new Settings()
                {
                    Text = this.txtMessage.Text
                }
            };

            if (colorDialog.ShowDialog() == DialogResult.OK)
            {
                message.Settings.Color = colorDialog.Color;
            }

            this.Network.RequestHandler(message);
            this.txtMessage.Clear();
        }
Beispiel #2
0
 private void IncomingMessage(object sender, Shared.Models.Message message)
 {
     this.lstMessageBox.Items.Add(message.Settings.Text);
 }
Beispiel #3
0
 private void IncomingMessage(object sender, Shared.Models.Message data)
 {
     this.lstMessageBox.Rows.Add("Username..", data.Settings.Text, data.Created);
     this.lstMessageBox.Rows[this.lstMessageBox.RowCount - 1].Cells["Message"].Style.ForeColor = data.Settings.Color;
 }