mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Revert accidental changes to UICatalog
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user