Exemple #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;
     }
 }
Exemple #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;
            }
        }
Exemple #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;
            }
        }
Exemple #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;
     }
 }