TimeView.xaml の相互作用ロジック
Inheritance: System.Windows.Controls.UserControl
Exemplo n.º 1
0
        public void SetControls(ProgramView pv, TimeView tv, ScrollViewer hv)
        {
            programView          = pv;
            timeView             = tv;
            horizontalViewScroll = hv;

            programView.ScrollChanged   += epgProgramView_ScrollChanged;
            programView.LeftDoubleClick += (sender, cursorPos) => EpgCmds.ShowDialog.Execute(null, cmdMenu);
            programView.MouseClick      += (sender, cursorPos) => clickPos = cursorPos;
            programView.RightClick      += epgProgramView_RightClick;
        }
Exemplo n.º 2
0
        public void SetControls(ProgramView pv, TimeView tv, ScrollViewer hv, Button button_now)
        {
            programView = pv;
            timeView = tv;
            horizontalViewScroll = hv;

            programView.ScrollChanged += new ScrollChangedEventHandler(epgProgramView_ScrollChanged);
            programView.LeftDoubleClick += new ProgramView.PanelViewClickHandler(epgProgramView_LeftDoubleClick);
            programView.RightClick += new ProgramView.PanelViewClickHandler(epgProgramView_RightClick);

            nowViewTimer = new DispatcherTimer(DispatcherPriority.Normal);
            nowViewTimer.Tick += new EventHandler(WaitReDrawNowLine);

            button_now.Click += new RoutedEventHandler((sender, e) => MoveNowTime());
        }
Exemplo n.º 3
0
        public void SetControls(ProgramView pv, TimeView tv, ScrollViewer hv, Button button_now)
        {
            programView          = pv;
            timeView             = tv;
            horizontalViewScroll = hv;

            programView.ScrollChanged   += new ScrollChangedEventHandler(epgProgramView_ScrollChanged);
            programView.LeftDoubleClick += (sender, cursorPos) => EpgCmds.ShowDialog.Execute(null, cmdMenu);
            programView.MouseClick      += (sender, cursorPos) => clickPos = cursorPos;
            programView.RightClick      += new ProgramView.PanelViewClickHandler(epgProgramView_RightClick);

            nowViewTimer       = new DispatcherTimer(DispatcherPriority.Normal);
            nowViewTimer.Tick += (sender, e) => ReDrawNowLine();
            this.Unloaded     += (sender, e) => nowViewTimer.Stop();

            button_now.Click += new RoutedEventHandler((sender, e) => MoveNowTime());
        }
Exemplo n.º 4
0
        public void SetControls(ProgramView pv, TimeView tv, ScrollViewer hv, Button button_now)
        {
            programView          = pv;
            timeView             = tv;
            horizontalViewScroll = hv;

            programView.ScrollChanged   += new ScrollChangedEventHandler(epgProgramView_ScrollChanged);
            programView.LeftDoubleClick += new ProgramView.PanelViewClickHandler(epgProgramView_LeftDoubleClick);
            programView.RightClick      += new ProgramView.PanelViewClickHandler(epgProgramView_RightClick);

            nowViewTimer       = new DispatcherTimer(DispatcherPriority.Normal);
            nowViewTimer.Tick += new EventHandler(WaitReDrawNowLine);

            button_now.Click += new RoutedEventHandler((sender, e) => MoveNowTime());

            timeView.Margin             = new Thickness(0, 0, 0, SystemParameters.HorizontalScrollBarHeight);
            horizontalViewScroll.Margin = new Thickness(0, 0, SystemParameters.VerticalScrollBarWidth, 0);
        }
Exemplo n.º 5
0
        public void SetControls(ProgramView pv, TimeView tv, ScrollViewer hv, Button button_now)
        {
            programView = pv;
            timeView = tv;
            horizontalViewScroll = hv;

            programView.ScrollChanged += new ScrollChangedEventHandler(epgProgramView_ScrollChanged);
            programView.LeftDoubleClick += new ProgramView.PanelViewClickHandler(epgProgramView_LeftDoubleClick);
            programView.RightClick += new ProgramView.PanelViewClickHandler(epgProgramView_RightClick);

            nowViewTimer = new DispatcherTimer(DispatcherPriority.Normal);
            nowViewTimer.Tick += new EventHandler(WaitReDrawNowLine);

            button_now.Click += new RoutedEventHandler((sender, e) => MoveNowTime());

            timeView.Margin = new Thickness(0, 0, 0, SystemParameters.HorizontalScrollBarHeight);
            horizontalViewScroll.Margin = new Thickness(0, 0, SystemParameters.VerticalScrollBarWidth, 0);
        }