Пример #1
0
        public SolverDialog(MainWindow mainWindow)
        {
            InitializeComponent();

            ResetOptions();

            this.mainWindow = mainWindow;
        }
Пример #2
0
        public MainWindow(MainWindow other)
        {
            InitializeComponent();

            Initialize();

            this.customLevel = other.customLevel;
            this.levelSet = other.levelSet;
            if (this.customLevel)
            {
                SetCustomLevel(other.originalLevel, other.level);
            }
            else
            {
                this.currentLevelNumber = other.currentLevelNumber;
                SetLevel(levelSet[currentLevelNumber], new PlayingLevel(other.Level));
            }

            RefreshLevel();
        }
Пример #3
0
 private void NewWindow()
 {
     MainWindow window = new MainWindow(this);
     SokobanApplicationContext.Instance.AddWindow(window);
     window.Show();
 }