${res:Templates.Project.SharpDevelopAddin.Name}
SharpDevelop
C#.Project.ControlLibrary
C#
${res:Templates.Project.SharpDevelopAddin.Description}
${ProjectName}
]]>
]]>
("test").Click += ButtonClick;
}
void ButtonClick(object sender, EventArgs e)
{
System.Windows.Forms.MessageBox.Show("The button was clicked!");
}
}
}
]]>
/// Description of the pad content
///
public class TestPad : AbstractPadContent
{
MyUserControl ctl;
///
/// Creates a new TestPad object
///
public TestPad()
{
ctl = new MyUserControl();
}
///
/// The representing the pad
///
public override Control Control {
get {
return ctl;
}
}
///
/// Refreshes the pad
///
public override void RedrawContent()
{
// TODO: Refresh the whole pad control here, renew all resource strings whatever
// Note that you do not need to recreate the control.
}
///
/// Cleans up all used resources
///
public override void Dispose()
{
ctl.Dispose();
}
}
}
]]>