private void PerformUserChosen() { if (SelectedUser >= 0) { RecvMessageCtrl.StopReceiving(); RecvMessageCtrl.Sender = OnlineUsersCtrl.GetUserByIndex(SelectedUser); SendMessageCtrl.Recipient = OnlineUsersCtrl.GetUserByIndex(SelectedUser); RecvMessageCtrl.StartReceiving(); } }
private void CloseApplicationEventHandler(bool arg) { RecvMessageCtrl.StopReceiving(); OnlineUsersCtrl.StopUpdating(); ExitCtrl.Exit(); }
private void ExitChatEventHandler(bool arg) { RecvMessageCtrl.StopReceiving(); OnlineUsersCtrl.StopUpdating(); ExitCtrl.Exit(); }