Exemplo n.º 1
0
        //Finally, if the buttons were not pressed and the user has said No,
        //then this is cancelled

        public void DoNotClose()
        {
            this.Hide();
            undock();
            TickerWindow mainWindow = new TickerWindow();

            mainWindow.Show();
        }
Exemplo n.º 2
0
        //These are the key variables used in the Ticker class.
        //Many are accessed via the TickerWindow.cs file, hence why they
        //employ the use of public getters and private setters. Others are only
        //used inside the ticker class, so are declared as solely private

        public Ticker(Panel container, TickerWindow parent)
        {
            seperatorSize   = 60;
            tickerContainer = container;
            displayWindow   = parent;
            tickerContainer.Measure(new Size(Double.PositiveInfinity,
                                             Double.PositiveInfinity));
            tickerContainer.Arrange(new Rect(tickerContainer.DesiredSize));
            items           = new List <T>();
            animTimer       = new DispatcherTimer();
            animTimer.Tick += animTimer_Tick;
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ScrollWindow = ((RSS_Ticker_Release.TickerWindow)(target));

            #line 9 "..\..\TickerWindow.xaml"
                this.ScrollWindow.Closing += new System.ComponentModel.CancelEventHandler(this.TickerWidnow_Closing);

            #line default
            #line hidden

            #line 10 "..\..\TickerWindow.xaml"
                this.ScrollWindow.Loaded += new System.Windows.RoutedEventHandler(this.window_onLoad);

            #line default
            #line hidden
                return;

            case 2:
                this.canv = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:

            #line 33 "..\..\TickerWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.goToWatchLater);

            #line default
            #line hidden
                return;

            case 4:

            #line 35 "..\..\TickerWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.goToSettings);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 4
0
        public void Ticker_Startup(object sender, StartupEventArgs e)
        {
            TickerWindow main = new TickerWindow();

            main.Show();
        }
Exemplo n.º 5
0
        //When the Settings window has began to close, a MessageBox is shown which asks for
        //user confirmation, via buttons to save the changes to settings, not save them, or
        //cancel it. A switch-case statement is performed against the result of the messageBox,
        //calling the appropriate events or triggering cancellation as necessary

        public void closeEvent()
        {
            TickerWindow mainWindow = new TickerWindow();

            mainWindow.Show();
        }