/// <summary> /// Modify the behavior after connection /// </summary> /// <param name="sender"></param> /// <param name="e">object person</param> public void OnConnected(object sender, PersonConnectedEventArgs e) { _connection = true; _personConnected = e.PersonConnected; if (_personConnected.Privilege > 0) { foreach (UcMessage ucMessage in AllMessageTopicsList) { ucMessage.panelOption.Visible = true; ucMessage.panelOption.Enabled = true; _tt.SetToolTip(ucMessage.pictureBoxDelete, Properties.Resources.TOOLTIPDELETE); } } foreach (UcMessage messageTopic in AllMessageTopicsList) { if (Controller.CheckVoted(messageTopic.TopicReplyId, _personConnected.PersonId)) { messageTopic.pictureBoxPlus.Enabled = false; messageTopic.pictureBoxPlus.Image = Properties.Resources.happy; } else { messageTopic.pictureBoxPlus.Enabled = true; messageTopic.pictureBoxPlus.Image = Properties.Resources.plus; _tt.SetToolTip(messageTopic.pictureBoxPlus, Properties.Resources.TOOLTIPVOTE); } messageTopic.textBoxNbPlus.Visible = true; } }
/// <summary> /// Modify the behavior after connection /// </summary> /// <param name="sender"></param> /// <param name="e">object person</param> public void OnConnected(object sender, PersonConnectedEventArgs e) { _personConnected = e.PersonConnected; _connection = true; UcAddTopic.UcRichTextBoxAddTopic.Enabled = true; UcAddTopic.UcRichTextBoxAddTopic.RichTextBox.Text = Properties.Resources.EMPTY; BuildAddTopic(); }
/// <summary> /// Modify the behavior after connection /// </summary> /// <param name="sender"></param> /// <param name="e">object person</param> public void OnConnected(object sender, PersonConnectedEventArgs e) { _connection = true; _personConnected = e.PersonConnected; foreach (UcRichTextBox ucRichTextBox in RTBList) { ucRichTextBox.Enabled = true; ucRichTextBox.RichTextBox.Text = ""; } }
private void OnConnected(object sender, PersonConnectedEventArgs e) { labelMessageLog.Visible = false; ObjManagerAddTopic.OnConnected(sender, e); ObjManagerLogged.OnConnected(sender, e); UcLogged ucLogged = ObjManagerLogged.UcLogged; tableLayoutPanel6.Controls.Add(ucLogged, 0, 0); ucLogged.buttonProfil.Focus(); ObjManagerFormProfil.OnConnected(sender, e); ObjManagerRichTextBox.OnConnected(sender, e); ObjManagerMessage.OnConnected(sender, e); ObjManagerTopic.OnConnected(sender, e); panelTopic.Controls.Clear(); BuildTopic(); }
/// <summary> /// Modify the behavior after connection /// </summary> /// <param name="sender"></param> /// <param name="e">object person</param> public void OnConnected(object sender, PersonConnectedEventArgs e) { BuildLogged(e.PersonConnected); }
/// <summary> /// Modify the behavior after connection /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void OnConnected(object sender, PersonConnectedEventArgs e) { _connection = true; _personConnect = e.PersonConnected; }
/// <summary> /// Modify the behavior after connection /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void OnConnected(object sender, PersonConnectedEventArgs e) { _person = e.PersonConnected; }