Example #1
0
        public RhinoOptionsPanelWidget(DotNetProject project, IEnumerable <ItemConfiguration> configurations)
        {
            supportsDevelopment = project.AsFlavor <RhinoProjectServiceExtension>()?.RhinoPluginType == McNeelProjectType.DebugStarter;

            if (supportsDevelopment)
            {
                currentLauncherEntries = currentLauncherEntries.Concat(debugLauncherEntries).ToArray();
            }

            this.project = project;
            Build();

            pluginTypeCombo.Active   = GetPluginComboIndex();
            pluginTypeCombo.Changed += (sender, e) =>
            {
                pluginTypeChanged = true;
                SetAutodetectLabel();
            };
            SetAutodetectLabel();


            launcherCombo.Changed += (sender, e) =>
            {
                launcherChanged = true;
                SetCustomLauncherText();
            };
            launcherCombo.Active = GetLauncherComboIndex();
            SetCustomLauncherText();
        }