コード例 #1
0
 private void name_TextChanged(object sender, EventArgs e)
 {
     SetTextboxHeight(nameTextBox.Text);
     NameChangedEvent.Invoke(this); // just let the subscribers know that the text has changed
 }
コード例 #2
0
 public void SetChatVote(ChatVote vote)
 {
     m_voteChoosed = vote;
     m_votedColorChange.Invoke(GetCurrentVoteColor());
     m_nameChanged.Invoke(GetDisplayName());
 }