private MainViewController(InkableScene inkableScene, MainPage mainPage)
        {
            InkableScene = inkableScene;
            MainPage     = mainPage;

            // disable for cidr demo
            BrushableViewController.CreateInstance(OperationViewModels);
            ComparisonViewController.CreateInstance(OperationViewModels);

            MainModel = new MainModel();

            AttributeTransformationViewModel.AttributeTransformationViewModelDropped += AttributeTransformationViewModelDropped;
            AttributeTransformationViewModel.AttributeTransformationViewModelMoved   += AttributeTransformationViewModelMoved;

            InputGroupViewModel.InputGroupViewModelDropped += InputGroupViewModelDropped;
            InputGroupViewModel.InputGroupViewModelMoved   += InputGroupViewModelMoved;

            OperationTypeModel.OperationTypeModelDropped += OperationTypeModelDropped;
            OperationTypeModel.OperationTypeModelMoved   += OperationTypeModelMoved;

            InkableScene.InkCollectedEvent        += InkableSceneInkCollectedEvent;
            OperationViewModels.CollectionChanged += OperationViewViewModels_CollectionChanged;

            _gesturizer.AddGesture(new ConnectGesture(InkableScene));
            _gesturizer.AddGesture(new EraseGesture(InkableScene));
            //_gesturizer.AddGesture(new ScribbleGesture(_root));
        }
 public static void CreateInstance(ObservableCollection <OperationViewModel> operationViewModel)
 {
     Instance = new BrushableViewController(operationViewModel);
 }