Skip to content

Instantly share code, notes, and snippets.

@0x414c49
Created January 14, 2020 09:03
Show Gist options
  • Save 0x414c49/e5213b91dfda3b846443ef3ac8c5eb82 to your computer and use it in GitHub Desktop.
Save 0x414c49/e5213b91dfda3b846443ef3ac8c5eb82 to your computer and use it in GitHub Desktop.
ChatWindow
using Terminal.Gui;
namespace RetroChat
{
public class ChatWindow : Window
{
private readonly View _parent;
private static string _username;
private static readonly List<string> _users = new List<string>();
private static readonly List<string> _messages = new List<string>();
public ChatWindow(View parent) : base("Retro Chat")
{
_parent = parent;
InitStyle();
InitControls();
}
private void InitStyle()
{
X = 0;
Y = 1; // Leave one row for the toplevel menu
// By using Dim.Fill(), it will automatically resize without manual intervention
Width = Dim.Fill();
Height = Dim.Fill();
}
private void InitControls()
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment