Пример #1
0
        public void update(IQuackObservable duck)
        {
            Form1 f1 = (Form1)Application.OpenForms["Form1"];

            f1.GB_Status_AppendText_Nextline("Quackologist was notified that the " + duck.get_name() + " just quacked", Color.Black);
        }
Пример #2
0
 public string get_name()
 {
     return(duck.get_name());
 }