Exemple #1
0
        private void btnRun_Click(object sender, EventArgs e)
        {
            if (Running)
            {
                return;
            }

            port = (int)numPort.Value;


            PluginArgs args = new PluginArgs(plugin.Guid);

            args.Header = 0;
            args.Write(GetIP());
            args.Write((int)numPort.Value);
            plugin.Send(args);

            Start();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            PluginArgs args = new PluginArgs(plugin.Guid);

            args.Header = 0;
            args.Write("Hello!");
            args.Write(new Random(54546).Next(0, 5));
            args.Write(new Random(65342).Next(0, 3));
            plugin.Send(args);
        }