Example #1
0
            public override void Execute(object parameter)
            {
                var page   = new DiagramInfoPage(vm.GameInfo.lastSeenKeito ?? vm.GameInfo.diagrams[0], vm.GameInfo);
                var window = new ToolWindow(page);

                window.ShowDialog();
            }
Example #2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="diagram">選択状態になっているダイアグラム</param>
 /// <param name="diagramInfoPage">ページ</param>
 public DiagramInfoViewModel(KeitoDiagram diagram, DiagramInfoPage diagramInfoPage, GameInfo gameInfo)
 {
     this.keito           = diagram;
     this.page            = diagramInfoPage;
     this.gameInfo        = gameInfo;
     this.Close           = new CloseCommand(this);
     this.DiagramLineInfo = new BelongsLinesInfoShowCommand(this);
     this.DiagramSetting  = new DiagramCommand(this);
 }