protected IWindowImp GetWindowImp() { if (this.implementation == null) { this.implementation = WindowSystemFactory.Instance().GetWindowImp(); } return this.implementation; }
public override void DrawContents() { IWindowImp imp = this.GetWindowImpl(); if (imp != null) { imp.DeviceBitmap(bitmapName, new Coord(0.0), new Coord(0.0)); } }
public Window(Implementors implementors) { switch (implementors) { case Implementors.XWindow: windowImp = new XWindowImp(); break; case Implementors.PMWindow: windowImp = new PMWindowImp(); break; } }
private View contents; // the window's contents public Window(View contents) { this.imp = null; this.contents = contents; }
public virtual void DrawRect(Point point1, Point point2) { IWindowImp imp = this.GetWindowImpl(); imp.DeviceRect(new Coord(point1.X), new Coord(point1.Y), new Coord(point2.X), new Coord(point2.Y)); }