Esempio n. 1
0
        protected override void OnKeyUp(KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.C: if (channel.Guide != null)
                {
                    CopyCurrentBroadcastData(this, e);
                }
                break;

            case Key.G: SwitchGuide(); break;

            case Key.H: string url = channel.HomepageUrl; if (url != null)
                {
                    DefaultProgram.OpenPage(url);
                }
                break;

            case Key.M: MuteCmd_Executed(this, e); break;

            case Key.T: SwitchClock(); break;

            case Key.X: if (channel.Guide != null)
                {
                    CopyPreviousBroadcastData(this, e);
                }
                break;

            case Key.F1: if (infoTaskBtn.IsEnabled)
                {
                    channel.Guide.Menu.HandleCommand(MenuIcon.Information);
                }
                break;

            case Key.F2: if (channel.Menu != null)
                {
                    channel.Menu.HandleCommand(MenuIcon.Playlist);
                }
                break;

            case Key.F3: if (channel.Menu != null)
                {
                    channel.Menu.HandleCommand(MenuIcon.Video);
                }
                break;

            case Key.F4: if (channel.Menu != null)
                {
                    channel.Menu.HandleCommand(MenuIcon.Settings);
                }
                break;

            case Key.Down: DecreaseCmd_Executed(this, null); break;

            case Key.Up: IncreaseCmd_Executed(this, null); break;

            default: base.OnKeyUp(e); break;
            }
        }
Esempio n. 2
0
 private void Hyperlink_Click(object sender, RoutedEventArgs e)
 {
     DefaultProgram.OpenPage(((Hyperlink)sender).NavigateUri.AbsoluteUri);
     this.Close();
 }