public DataTableViewModel() { AddRowCommand = new AddRowCommand(this); AddColCommand = new AddColCommand(this); InitializeDataTable(); AddRow(0, "Jhon"); }
/// <summary> /// コンストラクタ /// </summary> public MainViewModel() { // リストにバインドする要素の指定 Items = new ObservableCollection <MemoItem>(); // 追加ボタンのコマンド割り当て AddRowCommand = new AddRowCommand(ListAddRow); // クリアボタンのコマンド割り当て RowClearCommand = new RowClearCommand(ListClearRow); }