Ejemplo n.º 1
0
        //Method that handles the event of a button click
        //Used for the settings button
        private void btn_SettingClick(object sender, RoutedEventArgs e)
        {
            //Creates a new window
            SettingWindow settingWindow = new SettingWindow(mode);

            //Shows new window
            settingWindow.Show();

            Application.Current.Properties["WindowIndex"] = this.Name;

            //Closes this window
            this.Close();
        }
Ejemplo n.º 2
0
        //Method for the event of a button click
        //For the setting button
        //This method also opens another window
        private void btn_SettingClick(object sender, RoutedEventArgs e)
        {
            //Creates a new setting window
            SettingWindow settingWindow = new SettingWindow();

            //Sets this variable so it can be used for conditionals later
            Application.Current.Properties["WindowIndex"] = this.Name;

            //Show setting window
            settingWindow.Show();

            //Closes initial window
            this.Close();
        }