void SetRemoteIp(object sender, EventArgs e) { SetRemoteIP setRemoteIp = new SetRemoteIP(); setRemoteIp.SetRemoteIp(textBoxRemoteIp.Text); if (setRemoteIp.ShowDialog() != DialogResult.OK) { return; } textBoxRemoteIp.Text = setRemoteIp.GetRemoteIp(); }
void SetRemoteIp(object sender, EventArgs e) { SetRemoteIP setRemoteIp = new SetRemoteIP(); setRemoteIp.SetRemoteIp(textBoxRemoteIp.Text); if (setRemoteIp.ShowDialog() != DialogResult.OK) { return; } textBoxRemoteIp.Text = setRemoteIp.GetRemoteIp(); }