From 25f9b4e26772f7919f405ba81214452221412485 Mon Sep 17 00:00:00 2001 From: tznind Date: Sat, 26 Nov 2022 22:56:45 +0000 Subject: [PATCH] Revert accidental changes to UICatalog --- UICatalog/UICatalog.cs | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/UICatalog/UICatalog.cs b/UICatalog/UICatalog.cs index 716ab0a79..bdb6dbe21 100644 --- a/UICatalog/UICatalog.cs +++ b/UICatalog/UICatalog.cs @@ -47,38 +47,6 @@ namespace UICatalog { class UICatalogApp { static void Main (string [] args) { - - Application.Init (); - - var win = new Window (); - var mb = new MenuBar (new []{new MenuBarItem( - new []{ - new MenuItem("Click Me","",()=>{ }) - - }){ - Title = "File (F9)"} - }); - win.Add (mb); - - var txt = new TextView { - Y = 1, - Width = Dim.Fill (), - Height = Dim.Fill (), - AllowsTab = false, - WordWrap = true, - }; - - win.Add (txt); - Random r = new Random (); - Application.MainLoop.AddTimeout (TimeSpan.FromSeconds (1), - (m) => { - Application.MainLoop.Invoke (() => - txt.Text = new string ((char)r.Next (255), 999) - ); - return true; - }); - Application.Run (win); - Console.OutputEncoding = Encoding.Default; if (Debugger.IsAttached) { @@ -182,12 +150,12 @@ namespace UICatalog { class UICatalogTopLevel : Toplevel { public MenuItem miIsMouseDisabled; public MenuItem miHeightAsBuffer; - + public FrameView LeftPane; public ListView CategoryListView; public FrameView RightPane; public ListView ScenarioListView; - + public StatusItem Capslock; public StatusItem Numlock; public StatusItem Scrolllock;