void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DiffWindow = ((ClassicMineSweeper.DifficultyWindow)(target)); return; } this._contentLoaded = true; }
private void StartGameExecute(object obj) { Window GW = new DifficultyWindow(); GW.DataContext = new DifficultyVM(this); GW.Show(); Window thisWin = (Window)obj; thisWin.Close(); }