public EmoteListPopup() { Icon = App.Icon; Text = "Emotes - Chatterino"; //TopMost = true; container = new EmoteList(); container.Dock = DockStyle.Fill; Controls.Add(container); Width = 500; Height = 600; TopMost = AppSettings.WindowTopMost; AppSettings.WindowTopMostChanged += (s, e) => { TopMost = AppSettings.WindowTopMost; }; }
protected override void OnFormClosed(FormClosedEventArgs e) { container.ClearBuffer(); container = null; base.OnFormClosed(e); }