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