Beispiel #1
0
 public Form1()
 {
     InitializeComponent();
     Random r = new Random();
     observer1 = new CustomObserver(r.Next(0, 100), button1);
     observer2 = new CustomObserver(r.Next(0, 100), button1);
 }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();
            Random r = new Random();

            observer1 = new CustomObserver(r.Next(0, 100), button1);
            observer2 = new CustomObserver(r.Next(0, 100), button1);
        }