public void QueryToolbarCommands(ToolbarUI ui)
{
var databaseService = Container.Resolve <DatabaseService>();
if (databaseService.CurrentConfiguration == null)
{
return;
}
ui.AddCommand(new ToolbarItem()
{
Command = new SaveAndCompileCommand(),
Title = "Build",
Position = ToolbarPosition.Right,
Description = "Start code generation process. This generates C# code based on the nodes and items in the diagram."
});
ui.AddCommand(new ToolbarItem()
{
Command = new SaveAndCompileCommand()
{
ForceCompileAll = true
},
Title = "Build All",
Position = ToolbarPosition.Right,
Description = "Start code generation process. This forces all code to regenerate for everything in the database."
});
}