- Create a new Windows Forms application named ShellApplication
- rename Form1.cs to ShellForm.cs
- Add Reference
Microsoft.Practices.CompositeUI.dll
Microsoft.Practices.CompositeUI.WinForms.dll
Microsoft.Practices.ObjectBuilder.dll - create a custom workitem
- create a new class named ShellWorkItem.cs
- Inherit class from WorkItem and include namespace
using Microsoft.Practices.CompositeUI;
public class ShellWorkItem : WorkItem
{
} - modification in program.cs
- rename Program.cs to ShellApplication.cs
- include namespace
using Microsoft.Practices.CompositeUI.WinForms;
- Replace the static class ShellApplication with a public class that inherits from FormShellApplication
public class ShellApplication :
FormShellApplication<shellworkitem,shellform>
{
} [STAThread]
static void Main()
{
new ShellApplication().Run();
}
Tuesday, May 29, 2007
Stage 1: Creating the Shell and the Form
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment