private void mnuFileNew_Click(object sender, EventArgs e) { string host = txtMQTTHostname.Text; int port = int.Parse(txtMQTTPort.Text); CreateMQTTEventHandler form = new CreateMQTTEventHandler(host, port); form.ShowDialog(this); }
private void CreateMQTTEvent(string topic, string message) { string host = txtMQTTHostname.Text; int port = int.Parse(txtMQTTPort.Text); Form f = new CreateMQTTEventHandler(host, port, topic, message); f.ShowDialog(this); }
private void OpenFileDialog(string filepath) { XmlDocument xml = new XmlDocument(); xml.Load(filepath); string host = txtMQTTHostname.Text; int port = int.Parse(txtMQTTPort.Text); CreateMQTTEventHandler form = new CreateMQTTEventHandler(host, port, xml); form.ShowDialog(this); }