Browse Source

Revert accidental changes to UICatalog

tznind 2 years ago
parent
commit
25f9b4e267
1 changed files with 2 additions and 34 deletions
  1. 2 34
      UICatalog/UICatalog.cs

+ 2 - 34
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;