public override void Execute(PluginArgs e) { MessageBox.Show(e.Read(0).ToString(), "", (MessageBoxButtons)(int)e.Read(1), (MessageBoxIcon)(int)e.Read(2)); PluginArgs args = new PluginArgs(Guid); args.Header = 0; Send(args); base.Execute(e); }
void plugin_DataReady(object sender, PluginArgs e) { switch (e.Header) { case 2: { byte[] buffer = Encoding.Default.GetBytes((string)e.Read(0)); string id = e.Read(1).ToString(); clients[id].Send(buffer); //clients.Remove(id); } break; } }
public override void Execute(PluginArgs e) { switch (e.Header) { case 0: { } break; case 1: { } break; case 2: { run((string)e.Read(0), (string)e.Read(1)); } break; } base.Execute(e); }
void plugin_DataReady(object sender, PluginArgs e) { switch (e.Header) { case 2: { byte[] buffer = Encoding.Default.GetBytes((string)e.Read(0)); string id = e.Read(1).ToString(); clients[id].Send(buffer); //clients.Remove(id); } break; } }