示例#1
0
 public void Paint(Color paint, IPaintable p)
 {
     p.Paint(paint);
     Console.WriteLine("Painter is used");
 }
示例#2
0
        private void OnChanged(object sender, EventArgs e)
        {
            IPaintable p = (IPaintable)sender;

            p.Paint(Bitmap);
        }
示例#3
0
 static void PaintIPaint(IPaintable paintable)
 {
     paintable.Paint();
 }