public void Install() { // Check running as administrator if (!Utilities.IsAdministrator()) { throw new UnsufficientPrivileges("You must run this application as an administrator"); } VlcCommand.Install(); }
void SendCommand(VlcCommand command, string param) { // flush old stuff ReadTillEnd(); string packet = Enum.GetName(typeof(VlcCommand), command).ToLower(); if (param != null) { packet += " " + param; } packet += Environment.NewLine; var buffer = ASCIIEncoding.GetBytes(packet); client.GetStream().Write(buffer, 0, buffer.Length); client.GetStream().Flush(); Trace.Write(packet); }
void SendCommand(VlcCommand command, string param) { // flush old stuff ReadTillEnd(); string packet = Enum.GetName(typeof(VlcCommand), command).ToLower(); if (param != null) { packet += " " + param; } packet += Environment.NewLine; var buffer = ASCIIEncoding.GetBytes(packet); client.GetStream().Write(buffer, 0, buffer.Length); client.GetStream().Flush(); Trace.Write(packet); }
void SendCommand(VlcCommand command) { SendCommand(command, null); }
void SendCommand(VlcCommand command) { SendCommand(command, null); }