Revert accidental changes to UICatalog

This commit is contained in:
tznind
2022-11-26 22:56:45 +00:00
parent 2fba173288
commit 25f9b4e267

View File

@@ -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;