public SolverDialog(MainWindow mainWindow) { InitializeComponent(); ResetOptions(); this.mainWindow = mainWindow; }
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(); }
private void NewWindow() { MainWindow window = new MainWindow(this); SokobanApplicationContext.Instance.AddWindow(window); window.Show(); }