-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCbStreamBox.cs
More file actions
38 lines (33 loc) · 901 Bytes
/
CbStreamBox.cs
File metadata and controls
38 lines (33 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace DynamicWindows
{
public class CbStreamBox : Panel
{
private readonly Plugin _plugin;
public CbStreamBox(Plugin plugin)
{
_plugin = plugin;
}
public CbStreamBox()
{
// Set default properties for the stream box
this.BackColor = _plugin.formback;
this.AutoScroll = true;
}
public void AddContent(string content)
{
// Add content to the stream box
Label label = new Label
{
Text = content,
AutoSize = true,
ForeColor = _plugin.formfore,
Name = content
};
this.Controls.Add(label);
}
}
}