/// <summary>
        /// Evokes a pop up window to set algorithm parameters
        /// </summary>
        public void SetAlgorithmParameters()
        {
            ParametersWindow parametersWindow = new ParametersWindow();

            parametersWindow.Owner = System.Windows.Application.Current.MainWindow;
            parametersWindow.ShowDialog();
        }
Esempio n. 2
0
        private void ParametersMenuItem_Click(object sender, RoutedEventArgs e)
        {
            ParametersWindow parametersWindow = new ParametersWindow(currentLevel);

            parametersWindow.ShowDialog();
            Level newLevel = parametersWindow.GetLevel();

            if (currentLevel != newLevel)
            {
                currentLevel = newLevel;
                NewGame();
            }
        }