예제 #1
0
        //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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        void OnShapeAddedToRepository(object sender, ShapeAddedEventArgs e)
        {
            var viewModel = new PointInputViewModel(_dataRepository, e.NewShape);

            this.AllInputs.Add(viewModel);
        }