Ejemplo n.º 1
0
        private void beginRotation_click(object sender, EventArgs e)
        {
            IObserver frmRotationDialog = new RotationDialog(ref _controller, ref _actionSource);

            _controller.GetModel().Add(ref frmRotationDialog);

            ((RotationDialog)frmRotationDialog).ShowDialog();

            _controller.GetModel().Remove(ref frmRotationDialog);
        }
Ejemplo n.º 2
0
        public RotationDialog(ref CameraController controller, ref ActionSource actionSource)
        {
            IObserver iObs = this;

            InitializeComponent();
            frmRotationDialog = this;
            _controller       = controller;
            _actionSource     = actionSource;

            progressLabel.Text = $"{currentPhoto} / {photosPerRotation}";

            _actionSource.FireEvent(ActionEvent.Command.TAKE_PICTURE, IntPtr.Zero);
        }