Beispiel #1
0
 public UIForm(WindowBase window)
 {
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.window = window;
     frame = new XybridWindowFrame(window, this);
     InitializeComponent();
 }
Beispiel #2
0
        internal static void OpenWindow(WindowBase window)
        {
            UIForm form = new UIForm(window);
            form.CreateControl();
            //form.target = new SwapChainRenderTarget(GraphicsManager.device, form.Handle, form.ClientSize.Width, form.ClientSize.Height, false, SurfaceFormat.Color, DepthFormat.Depth24, 0, RenderTargetUsage.PreserveContents, PresentInterval.Default);
            //window.canvas = new Canvas(form.target);

            windows.Add(form);
            form.window.QueueFullRedraw();
            form.Show();
        }
Beispiel #3
0
 public virtual void OpenWindow(WindowBase window)
 {
 }
Beispiel #4
0
 public static UIForm GetForm(WindowBase window)
 {
     foreach (UIForm wind in windows) if (wind.window == window) return wind; return null;
 }
Beispiel #5
0
 public override void OpenWindow(WindowBase window)
 {
     UIManager.OpenWindow(window);
 }