Exemplo n.º 1
0
 public ChatHistory()
 {
     if(chatHistory != null)
         throw new InvalidOperationException();
     chatHistory = this;
     InitializeComponent();
 }
Exemplo n.º 2
0
 private void ChatHistory_FormClosing(object sender, FormClosingEventArgs e)
 {
     MessageHistory.Instance.OnNewMessage -= OnNewMessage;
     chatHistory = null;
 }