This project is read-only.

NuGet Quick Start

The NuGet Package installs the core Theta assembly for creating shell applications - for creating shell applications using Theta, see the documentation. It also installs the Theta.Utility assembly which can be used to create a development test harness to assist in solution development.

693255

To create a test and utility harness for your .NET solution -
  1. Add a new Windows Forms project to your solution
  2. Install the Theta package for the new Windows Forms project
  3. Modify the program.cs file to resemble the following code snippet
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            *Application.Run(new UtilityConsole());*
        }


As you create commands and modules, they can be registered using the following code snippet as an example.

        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new UtilityConsole(new Type[]
                {
                     typeof(namespace.MyNewCommand1),
                     typeof(namespace.MyNewCommand2),
                     typeof(namespace.MyModule1),
                     ...
                }));
        }


see also Creating Commands, Creating Modules

Last edited Jun 16, 2013 at 1:35 AM by jeffhewitt, version 1

Comments

No comments yet.