C#たんと学ぶ/わりと硬派なソ​フトウェア開発講座 第2回「デスクトップアプリケーション」

概要C#たん ソフトウェア開発講座第2回のサンプルです。今回のサンプルは、いわゆる「15パズル」をWPFで作ったものです。

C# (667.5 KB)
 
 
 
 
 
5 Star
(1)
1,208 times
Add to favorites
5/5/2011
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Game.csのMoveByDirectionInternalに関して
    1 Posts | Last post July 23, 2014
    • 以下の↓キーと↑キーの判定処理と動作ですが、間違ってる気がしています。
      (手元に確認できる環境が無いので) 
      
          if (key == Direction.Down && r > 0) 
          {
               return new MoveResult( new CellIndex(r, c),  new CellIndex(r - 1, c));
          }
         else if (key == Direction.Up && r < 3) 
         {
              return new MoveResult( new CellIndex(r, c), new CellIndex(r + 1, c));
          }
      
      ↓のようにすべきじゃないでしょうか?
          if (key == Direction.Down && r < 3) 
          {
               return new MoveResult( new CellIndex(r, c),  new CellIndex(r + 1, c));
          }
         else if (key == Direction.Up && r > 0) 
         {
              return new MoveResult( new CellIndex(r, c), new CellIndex(r - 1, c));
          }
  • Whats is the purpose of Microsoft.Practices.Prism.xml ?
    2 Posts | Last post July 27, 2011
    • hi, I want to know the purpose of using Microsoft.Practices.Prism.xml file. Will it be acts as an Dictionary for loading Module information in the runtime ? kindly advice me about the purpose of this context.
    • It may be a content automaticaly added by NuGet package manager. I don't know its purpose exactly, but it seems not to be used in the runtime. In general, this kind of an xml file is used for IntelliSense tooltip hints.