private void OpenPrivateWindow(IPAddress remoteClientIP, string clientName, string initialMessage) { if (this.client.Connected) { frmPrivate privateWindow = new frmPrivate(this.client, remoteClientIP, clientName, initialMessage); this.privateWindowsList.Add(privateWindow); privateWindow.FormClosed += new FormClosedEventHandler(privateWindow_FormClosed); privateWindow.Show(this); } }
private void OpenPrivateWindow(IPAddress remoteClientIP, string clientName) { if (this.client.Connected) { if (!this.IsPrivateWindowOpened(clientName)) { frmPrivate privateWindow = new frmPrivate(this.client, remoteClientIP, clientName); this.privateWindowsList.Add(privateWindow); privateWindow.FormClosed += new FormClosedEventHandler(privateWindow_FormClosed); privateWindow.StartPosition = FormStartPosition.CenterParent; privateWindow.Show(this); } } }
private void RemoveFromList(string name) { ListViewItem item = this.lstViwUsers.FindItemWithText(name); if (item.Text != this.client.IP.ToString()) { this.lstViwUsers.Items.Remove(item); ShareUtils.PlaySound(ShareUtils.SoundType.ClientExit); } frmPrivate target = this.FindPrivateWindow(name); if (target != null) { target.Close(); } }
private void OpenPrivateWindow(IPAddress remoteClientIP , string clientName , string initialMessage) { if (this.client.Connected ) { frmPrivate privateWindow = new frmPrivate(this.client , remoteClientIP , clientName , initialMessage); this.privateWindowsList.Add(privateWindow); privateWindow.FormClosed += new FormClosedEventHandler(privateWindow_FormClosed); privateWindow.Show(this); } }
private void OpenPrivateWindow(IPAddress remoteClientIP,string clientName) { if ( this.client.Connected ) { if ( !this.IsPrivateWindowOpened(clientName) ) { frmPrivate privateWindow = new frmPrivate(this.client , remoteClientIP , clientName); this.privateWindowsList.Add(privateWindow); privateWindow.FormClosed += new FormClosedEventHandler(privateWindow_FormClosed); privateWindow.StartPosition = FormStartPosition.CenterParent; privateWindow.Show(this); } } }
private void OpenPrivateWindow(IPAddress remoteClientIp , string clientName , string initialMessage) { if (_client.Connected ) { var privateWindow = new frmPrivate(_client , remoteClientIp , clientName , initialMessage); _privateWindowsList.Add(privateWindow); privateWindow.FormClosed += privateWindow_FormClosed; privateWindow.Show(this); } }
private void OpenPrivateWindow(IPAddress remoteClientIp,string clientName) { if ( _client.Connected ) { if ( !IsPrivateWindowOpened(clientName) ) { var privateWindow = new frmPrivate(_client , remoteClientIp , clientName); _privateWindowsList.Add(privateWindow); privateWindow.FormClosed += privateWindow_FormClosed; privateWindow.StartPosition = FormStartPosition.CenterParent; privateWindow.Show(this); } } }