public MainViewModel (RelativeLayout mainLayout, Context context) { _webService = ColorWebServices.Instance; _shapeFactory = ShapeFactory.Instance; _mainLayout = mainLayout; _context = context; }
public ShapeViewModel (ShapeBase shape) { _shape = shape; _webServices = ColorWebServices.Instance; _imageService = ImageService.Instance; _shapeFactory = ShapeFactory.Instance; DoubleTapCommand = new Command (async ()=> HandleDoubleTap()); }