public RequestContainer(string username, int requester, int receiver, SocketConnectionHelper helper, AccountInformation accountInfo) { InitializeComponent(); this.username = username; this.requesterId = requester; this.receiverId = receiver; this.socketHelper = helper; this.sender = accountInfo; }
public FrmMessengerDialog() { InitializeComponent(); socketHelper = new SocketConnectionHelper(); socketHelper.SocketDataReceived += socketHelper_SocketDataReceived; socketHelper.ServerSocketClosed += socketHelper_ServerSocketClosed; socketHelper.CallEstablished += socketHelper_CallEstablished; this.notificationSoundPlayer = new SoundPlayer(Resources.NotificationSound); this.callSoundPlayer = new SoundPlayer(Resources.CallSound); }