private void WSRemoteForm_Closed(object sender, EventArgs e)
{
if (((InputForm)sender).Status == DialogResult.OK)
{
string val = ((InputForm)sender).Value;
string[] tokens = val.Split(' ');
if (tokens.Length == 1)
{
int port = Int32.Parse(tokens[0]);
selectedConfig = new RemoteWebSocketCloverConfiguration("localhost", port);
}
((CloverExamplePOSForm)this.Owner).InitializeConnector(selectedConfig);
this.Close();
}
}