// Constructor public Form_Chat(User currentuser, User otheruser) { InitializeComponent(); chathandler = new ChatHandler(); currentUser = currentuser; otherUser = otheruser; snd = new SoundPlayer(Properties.Resources.Notification); currentchat = OpenChat(currentUser, otherUser); Timer_Refresh.Start(); }
private void Form_Chat_FormClosing(object sender, FormClosingEventArgs e) { Timer_Refresh.Stop(); }