public Win32(IRender <IW32Win> renderer, IController <IWFWin> controller, WindowCreateOptions co) { ProcessCreateOptions(co); hookAction = nf => { renderer.Init(this, nf); controller.Init(this, nf); winForm.Shown += (o, e) => renderer.BeginRender(); winForm.FormClosing += (o, e) => renderer.EndRender(); nf.window = this; }; }
public WFBase(WindowCreateOptions co) { ShowInTaskbar = co.showInTaskbar; switch (co.windowBorderStyle) { default: case WindowBorderStyle.Sizable: FormBorderStyle = FormBorderStyle.Sizable; break; case WindowBorderStyle.Fixed: FormBorderStyle = FormBorderStyle.FixedDialog; break; case WindowBorderStyle.NoBorder: FormBorderStyle = FormBorderStyle.None; break; } //SetStyle(System.Windows.Forms.ControlStyles.UserMouse, true); //SetStyle(System.Windows.Forms.ControlStyles.UserPaint, true); }
protected void ProcessCreateOptions(WindowCreateOptions co) { winForm = new WFBase(co); }