Exemplo n.º 1
0
 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;
     };
 }
Exemplo n.º 2
0
            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);
            }
Exemplo n.º 3
0
 protected void ProcessCreateOptions(WindowCreateOptions co)
 {
     winForm = new WFBase(co);
 }