//public ICommand DoubleClickCommand //{ // get // { // if(_doubleClickCommand == null) // { // } // return null; // } //} public void Add() { PointInputViewModel workspace = new PointInputViewModel(this._dataRepository, null); workspace.ShapeEdit += this.Edit; this.Workspaces.Add(workspace); }
public void Setup() { //data = new DataRepository(); workspaceViewModel = new AllPointInputViewModel(data); //Create a new test PointSetShape PointSetShape point = new PointSetShape(); point.x1 = 0; point.y1 = 0; point.x2 = 0; point.y2 = 0; inputViewModel = new PointInputViewModel(data, point); }
void OnShapeAddedToRepository(object sender, ShapeAddedEventArgs e) { var viewModel = new PointInputViewModel(_dataRepository, e.NewShape); this.AllInputs.Add(viewModel); }