示例#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);
        }
示例#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);
        }
示例#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);
        }