public UIForm(WindowBase window) { this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.window = window; frame = new XybridWindowFrame(window, this); InitializeComponent(); }
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(); }
public virtual void OpenWindow(WindowBase window) { }
public static UIForm GetForm(WindowBase window) { foreach (UIForm wind in windows) if (wind.window == window) return wind; return null; }
public override void OpenWindow(WindowBase window) { UIManager.OpenWindow(window); }