private void ConnectWinConnectButtonClicked(ConnectWindow sender, string ip, int port, string password) { ConnectTo(ip, port, password); }
private void connectButtonClick(object sender, RoutedEventArgs e) { ConnectWindow connectWin = new ConnectWindow(Icon); connectWin.ConnectButtonClicked += ConnectWinConnectButtonClicked; connectWin.ShowDialog(); }