void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.DiffWindow = ((ClassicMineSweeper.DifficultyWindow)(target));
         return;
     }
     this._contentLoaded = true;
 }
예제 #2
0
        private void StartGameExecute(object obj)
        {
            Window GW = new DifficultyWindow();

            GW.DataContext = new DifficultyVM(this);
            GW.Show();

            Window thisWin = (Window)obj;

            thisWin.Close();
        }