public static void SetVolume(int Volume) { using (NamedPipeClient client = new NamedPipeClient(".", "Play.Server")) { client.Query(new ServerMsg { ServerMsgType = ServerMsgType.Volume, IntValue = Volume }); } }
/// <summary> /// 播放文件 /// </summary> public static void Play(string Url) { using (NamedPipeClient client = new NamedPipeClient(".", "Play.Server")) { client.Query(new ServerMsg { ServerMsgType = ServerMsgType.OpenUrl, Value = Url }); } }