private void AddButtons()
        {
            switch (App.ShowExtensionsDialog)
            {
                case ShowExtensionsDialog.Default:
                    var simpleAction = new SimpleActionItem(HeaderControl.ApplicationMenuKey, "Extension Manager...", ExtensionManager_Click);
                    simpleAction.SmallImage = Resources.plugin_16x16;
                    simpleAction.LargeImage = Resources.plugin_32x32;
                    simpleAction.GroupCaption = HeaderControl.ApplicationMenuKey;
                    simpleAction.SortOrder = 100;
                    App.HeaderControl.Add(simpleAction);

                    break;

                case ShowExtensionsDialog.MapGlyph:
                    AppFunction fun = new AppFunction { Manager = App, Map = App.Map };
                    App.Map.MapFunctions.Insert(0, fun);
                    fun.Activate();
                    break;

                case ShowExtensionsDialog.None:
                default:
                    break;
            }
        }
        private void AddButtons()
        {
            switch (App.ShowExtensionsDialogMode)
            {
                case ShowExtensionsDialogMode.Default:
                    var simpleAction = new SimpleActionItem(HeaderControl.ApplicationMenuKey, "Extension Manager...", ExtensionManager_Click)
                    {
                        GroupCaption = HeaderControl.ApplicationMenuKey,
                        SmallImage = Resources.plugin_16x16,
                        LargeImage = Resources.plugin_32x32,
                        SortOrder = 100
                    };
                    App.HeaderControl.Add(simpleAction);

                    //sample projects menu
                    var simpleActionItem = new SimpleActionItem(HeaderControl.ApplicationMenuKey, "Open sample project..", OpenSampleProjects_Click)
                    {
                        GroupCaption = HeaderControl.ApplicationMenuKey,
                        SmallImage = Resources.plugin_16x16,
                        LargeImage = Resources.plugin_32x32
                    };
                    App.HeaderControl.Add(simpleActionItem);

                    break;

                case ShowExtensionsDialogMode.MapGlyph:
                    var fun = new AppFunction { Manager = App, Map = App.Map };
                    App.Map.MapFunctions.Insert(0, fun);
                    fun.Activate();
                    break;
            }
        }
示例#3
0
        private void AddButtons()
        {
            switch (App.ShowExtensionsDialog)
            {
            case ShowExtensionsDialog.Default:
                var simpleAction = new SimpleActionItem(HeaderControl.ApplicationMenuKey, "Extension Manager...", ExtensionManager_Click);
                simpleAction.GroupCaption = HeaderControl.ApplicationMenuKey;
                simpleAction.SmallImage   = Resources.plugin_16x16;
                simpleAction.LargeImage   = Resources.plugin_32x32;
                simpleAction.SortOrder    = 100;
                App.HeaderControl.Add(simpleAction);

                //sample projects menu
                SimpleActionItem simpleActionItem = new SimpleActionItem(HeaderControl.ApplicationMenuKey, "Open sample project..", OpenSampleProjects_Click);
                simpleActionItem.GroupCaption = HeaderControl.ApplicationMenuKey;
                simpleActionItem.SmallImage   = Resources.plugin_16x16;
                simpleActionItem.LargeImage   = Resources.plugin_32x32;
                base.App.HeaderControl.Add(simpleActionItem);

                break;

            case ShowExtensionsDialog.MapGlyph:
                AppFunction fun = new AppFunction {
                    Manager = App, Map = App.Map
                };
                App.Map.MapFunctions.Insert(0, fun);
                fun.Activate();
                break;
            }
        }
示例#4
0
        private void AddButtons()
        {
            switch (App.ShowExtensionsDialogMode)
            {
            case ShowExtensionsDialogMode.Default:
                var simpleAction = new SimpleActionItem(HeaderControl.ApplicationMenuKey, Resources.ExtensionManager, ExtensionManagerClick)
                {
                    GroupCaption = HeaderControl.ApplicationMenuKey,
                    SmallImage   = Resources.plugin_16x16,
                    LargeImage   = Resources.plugin_32x32,
                    SortOrder    = 100
                };
                App.HeaderControl.Add(simpleAction);

                // sample projects menu
                var simpleActionItem = new SimpleActionItem(HeaderControl.ApplicationMenuKey, Resources.OpenSampleProject, OpenSampleProjectsClick)
                {
                    GroupCaption = HeaderControl.ApplicationMenuKey,
                    SmallImage   = Resources.plugin_16x16,
                    LargeImage   = Resources.plugin_32x32
                };
                App.HeaderControl.Add(simpleActionItem);

                break;

            case ShowExtensionsDialogMode.MapGlyph:
                var fun = new AppFunction
                {
                    Manager = App,
                    Map     = App.Map
                };
                App.Map.MapFunctions.Insert(0, fun);
                fun.Activate();
                break;
            }
        }