public static void Clear(AxAPlayer3Lib.AxPlayer p, int time) { timer.Enabled = false; player = p; timer.Interval = time; timer.Tick += new EventHandler(time_tick); timer.Start(); }
private void player_OnMessage(object sender, AxAPlayer3Lib._IPlayerEvents_OnMessageEvent e) { Constant.N_MESSAGE nMessage = (Constant.N_MESSAGE)e.nMessage; Constant.PLAY_STATE state = (Constant.PLAY_STATE)this.player.GetState(); switch (nMessage) { case Constant.N_MESSAGE.DOUBLE_LEFT_CLICK: this.FullScreen(); break; case Constant.N_MESSAGE.RIGHT_CLICK_OUT: int x = e.lParam & 0xffff; int y = e.lParam >> 16; this.metroContextMenu1.Show(player, new Point(x, y)); break; } }
private void player_OnEvent(object sender, AxAPlayer3Lib._IPlayerEvents_OnEventEvent e) { Console.WriteLine(e); }
public Snapshot(AxAPlayer3Lib.AxPlayer player) { InitializeComponent(); this.player = player; }
private void axPlayer1_OnMessage(object sender, AxAPlayer3Lib._IPlayerEvents_OnMessageEvent e) { }