Beispiel #1
0
 /// <summary>
 /// Attaches an observer using the pull-interface to the oven
 /// </summary>
 /// <param name="observer"></param>
 public void Attach(IPullObserver observer)
 {
     bool match = pullObservers.Contains(observer);
     if (!match)
     {
         pullObservers.Add(observer);
         label3.Text = "" + pullObservers.Count;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Detaches a pull-observer
        /// </summary>
        /// <param name="observer"></param>
        public void Detach(IPullObserver observer)
        {
            bool match = pullObservers.Contains(observer);

            if (match)
            {
                pullObservers.Remove(observer);
                label3.Text = "" + pullObservers.Count;
            }
        }
Beispiel #3
0
        /// <summary>
        /// Attaches an observer using the pull-interface to the oven
        /// </summary>
        /// <param name="observer"></param>
        public void Attach(IPullObserver observer)
        {
            bool match = pullObservers.Contains(observer);

            if (!match)
            {
                pullObservers.Add(observer);
                label3.Text = "" + pullObservers.Count;
            }
        }
Beispiel #4
0
 /// <summary>
 /// Detaches a pull-observer
 /// </summary>
 /// <param name="observer"></param>
 public void Detach(IPullObserver observer)
 {
     bool match = pullObservers.Contains(observer);
     if (match)
     {
         pullObservers.Remove(observer);
         label3.Text = "" + pullObservers.Count;
     }
 }