public void Paint(Color paint, IPaintable p) { p.Paint(paint); Console.WriteLine("Painter is used"); }
private void OnChanged(object sender, EventArgs e) { IPaintable p = (IPaintable)sender; p.Paint(Bitmap); }
static void PaintIPaint(IPaintable paintable) { paintable.Paint(); }