Beispiel #1
0
 protected override void MenuConfiguration(IShellMenuService menuSet)
 {
     menuSet.Menu("_Workspace")
     .Children
     .Navigation("Options")
     .WithToolTip("This feature allow you to manage the Option of this application.")
     .WithIcon(GetResource("OptionIcon"))
     .DisplayAt(1)
     //.AndValidForOperations(DefaultOperations.UpdateSetting.ToString())
     .For(new RegionNavigationParameter(typeof(ShellOptionView)));
 }
 protected override void MenuConfiguration(IShellMenuService menuSet)
 {
     menuSet.Menu("_Workspace")
     .Children
     .AddNavigation("Module Management")
     .WithToolTip("This feature allow you to manage the Modules, that are using on this application.")
     .WithIcon(GetResource("MM_MenuIcon"))
     .DisplayAt(0)
     //.AndValidForRoles(DefaultRoles.Administrator)
     .For(new RegionNavigationParameter(typeof(MainView)));
 }
Beispiel #3
0
        protected override void MenuConfiguration(IShellMenuService menuSet)
        {
            menuSet.Menu("Sql Tools")
            .WithIcon(GetResource(ResourceKeys.SqlIcon))
            .Children
            .AddTitle("Migration Scripts")
            .AndNavigation("Migration Script Generation");

            menuSet.Menu("Sql Tools")
            .Children
            .AddNavigation("Migration Script Generation")
            .WithIcon(GetResource(ResourceKeys.DatabaseIcon))
            .For(new ViewInfo(typeof(MigrationScriptView)));
        }
Beispiel #4
0
        protected override void MenuConfiguration(IShellMenuService menuSet)
        {
            menuSet.Menu("_Demo1")
            .Children
            .AddTitle("Title 1")
            .AndNavigation("Demo View 1")
            .WithToolTip("Hello Tooltip")
            .ForRegion(null, typeof(View1))
            .AndNavigation("Demo View 2")
            .ForRegion(typeof(ColorViewer))
            .AndSeparator()
            .AddTitle("Title 2")
            .AndNavigation("Demo View 11")
            .WithToolTip("Hello Tooltip")
            .ForRegion(typeof(View1))
            .AndNavigation("Demo View 22")
            .For <ColorViewer>();

            menuSet.Menu("_Demo2");
        }