Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            progressSubject = new SubjectWithEvent();

            //creates observers - spinbox takes in form control
            obsSpin     = new SpinBoxObserver(progressSubject, spinBox, this);
            obsProgress = new ProgressBarObserver(progressSubject, progressBar);
            obsTrack    = new TrackBarObserver(progressSubject, trackBar);
        }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            progressSubject = new SubjectWithEvent();

            //creates observers - spinbox takes in form control
            obsSpin = new SpinBoxObserver(progressSubject, spinBox, this);
            obsProgress = new ProgressBarObserver(progressSubject, progressBar);
            obsTrack = new TrackBarObserver(progressSubject, trackBar);
        }