Visual Designer:
* Added Custom UI Look without using the VisualContainer control * Included ManagedScriptingWIN.dll, missing from previous commits.
This commit is contained in:
parent
2e0d9d0953
commit
fa720f42bf
6 changed files with 229 additions and 219 deletions
|
@ -13,37 +13,16 @@ namespace VisualComponents
|
|||
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
|
||||
public partial class VisualContainer : UserControl
|
||||
{
|
||||
[Browsable(true)]
|
||||
public bool IsClosable
|
||||
{
|
||||
get { return btnClose.Visible; }
|
||||
set { btnClose.Visible = value; }
|
||||
}
|
||||
|
||||
[Browsable(true)]
|
||||
public string Title
|
||||
{
|
||||
get { return lblTitle.Text; }
|
||||
set { lblTitle.Text = value; }
|
||||
}
|
||||
|
||||
public void AddControl(Control control)
|
||||
{
|
||||
this.flowLayoutPanel1.Controls.Add(control);
|
||||
get { return btnTitle.Text; }
|
||||
set { btnTitle.Text = value; }
|
||||
}
|
||||
|
||||
public VisualContainer()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Container.Remove(this);
|
||||
}
|
||||
|
||||
private void Container_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue