Пример #1
0
        // 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();
        }
Пример #2
0
 private void Form_Chat_FormClosing(object sender, FormClosingEventArgs e)
 {
     Timer_Refresh.Stop();
 }