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