示例#1
0
        public CounterColor(string path)
        {
            Image img = Image.FromFile(path);

            bt           = new Bitmap(img);
            mInformer    = new ConcreteInformer(m);
            mReceiver    = new ConcreteReceiver(m);
            m.Colleague1 = mInformer;
            m.Colleague2 = mReceiver;
            h1.SetNext(h2);
            h2.SetNext(h3);
            h3.SetNext(h4);
            h4.SetNext(h5);
            h5.SetNext(h6);
            h6.SetNext(h7);
            h7.SetNext(h8);
            h8.SetNext(h9);
            h9.SetNext(h10);
            h10.SetNext(h11);
        }
示例#2
0
 public CounterColor()
 {
     mInformer = new ConcreteInformer(m);
     mReceiver = new ConcreteReceiver(m);
 }