예제 #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();
        }
예제 #2
0
        public void Ticker_Startup(object sender, StartupEventArgs e)
        {
            TickerWindow main = new TickerWindow();

            main.Show();
        }
예제 #3
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();
        }