Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }