示例#1
0
        /// <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;
            }
        }
示例#2
0
 /// <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 = "";
     }
 }
示例#4
0
        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();
        }
示例#5
0
 /// <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);
 }
示例#6
0
 /// <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;
 }
示例#7
0
 /// <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;
 }