예제 #1
0
        public static void Show(TypeParser parser)
        {
            REPL repl = new REPL(parser);
            REPLRenderingPanel replPanel = new REPLRenderingPanel(repl.DisplayData, repl.Command, new FontFamily("Lucida Console"), 10);

            repl.ReplPanel = replPanel;
            var win = new StickyWindow((r) => Persist.Put <PersistRect>("REPL", r), () => Persist.Get <PersistRect>("REPL", new PersistRect(150, 150, 500, 400)))
            {
                Title   = "C# REPL by KamimuCode",
                Content = new ScrollerPanel()
                {
                    Content = new CursorPanel()
                    {
                        Content = replPanel
                    }
                }
            };

            replPanel.Focus();

            win.ShowDialog();
        }