Created
January 14, 2020 09:03
-
-
Save 0x414c49/e5213b91dfda3b846443ef3ac8c5eb82 to your computer and use it in GitHub Desktop.
ChatWindow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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