public MainWindow() : base("Chatterino") { // window bounds try { SetPosition(WindowPosition.None); Move(AppSettings.WindowX, AppSettings.WindowY); Resize(AppSettings.WindowWidth, AppSettings.WindowHeight); } catch { } // top most KeepAbove = AppSettings.WindowTopMost; AppSettings.WindowTopMostChanged += (s, e) => { KeepAbove = AppSettings.WindowTopMost; }; // icon //Icon = App.Icon; // show login dialog //if (!File.Exists("./login.ini")) //{ // using (var login = new LoginForm()) // { // login.ShowDialog(); // } //} // load layout LoadLayout("./layout.xml"); // set title SetTitle(); IrcManager.LoggedIn += (s, e) => SetTitle(); // gtk specific var widget = new ChatWidget(); var channel = TwitchChannel.AddChannel("forsenlol"); widget.TwitchChannel = channel; Add(widget); }
public _ChatView(Context context) : base(context) { channel = TwitchChannel.AddChannel("pajlada"); channel.MessageAdded += Channel_MessageAdded; }