public override void StartUp() { boundsLogic = new CameraControlsPlugin.BoundsLogic(); GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm( "Camera", -1, new CameraControl(), this); this.ElementLoaded += HandleElementLoaded; }
public override void StartUp() { boundsLogic = new CameraControlsPlugin.BoundsLogic(); guidesViewModel = new CameraViewModel(); guidesViewModel.PropertyChanged += HandleGuidesPropertyChanged; guidesViewModel.CellSize = 20; cameraControl = new CameraControl(guidesViewModel); GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm( "Camera", -1, cameraControl, this); this.ElementLoaded += HandleElementLoaded; this.Update += HandleUpdate; this.ElementRemoved += HandleElementRemoved; }