Exemple #1
0
        private static Button CreateLink(IPackageVersion version)
        {
            var featureSetLink = new Button(() => { PackageManagerWindow.OpenPackageManager(version.name); });

            featureSetLink.AddClasses("link featureSetLink");
            featureSetLink.text = version.displayName;
            return(featureSetLink);
        }
        public TypeViewMenu(object obj, ViewContext context)
        {
            Context = context;

            Label = new Button();
            Label.AddClasses("compact");
            SetButtonLabel();
            Label.RegisterCallback <MouseUpEvent>(TypeViewersClick);
            Label.tooltip = "Click to switch between type views";
            Add(Label);

            Context.OnTypeSwitch += OnTypeSwitch;
        }