public void DelAsset(string fun, string arg) { if (fun == "control") { if (arg != null) { if (arg == "play") { this.PlayFlash(); } else if (arg == "puase") { this.PauseFlash(); } else if (arg == "retreat") { this.RetreatFlash(); } else if (arg == "forward") { this.ForwardFlash(); } } } else if (fun == "sound") { if (arg != null) { if (arg == "up") { SoundHelper.TurnUp(base.Handle); } else if (arg == "down") { SoundHelper.TurnDown(base.Handle); } else if (arg == "mute") { SoundHelper.IsMute(base.Handle); } else if (arg.ToLower() == "unmute") { SoundHelper.IsMute(base.Handle); } } } }
public void DelAsset(string fun, string arg) { string str = fun; if (str != null) { if (str == "control") { str = arg; if (str != null) { if (str == "play") { this.PlayVideo(); } else if (str == "puase") { this.PauseVideo(); } else if (str == "retreat") { this.ReatreatVideo(); } else if (str == "forward") { this.ForwardVideo(); } else if (str == "close") { this.CloseVideo(); } } } else if (str == "time") { this.SetTime(arg); } else if (str == "sound") { str = arg; if (str != null) { if (str == "up") { SoundHelper.TurnUp(base.Handle); } else if (str == "down") { SoundHelper.TurnDown(base.Handle); } else if (str == "mute") { SoundHelper.IsMute(base.Handle); } else if (str == "unmute") { SoundHelper.IsMute(base.Handle); } } } } }