void SetCustomLauncherText() { customLauncherEntry.IsEditable = launcherCombo.Active == 3; // custom var outputFileName = project.GetOutputFileName(project.DefaultConfiguration.Selector); switch (launcherCombo.Active) { case 0: // auto detect var version = project.GetRhinoVersion() ?? Helpers.DefaultRhinoVersion; var appPath = project.DetectApplicationPath(outputFileName, version); customLauncherEntry.Text = appPath; break; case 1: customLauncherEntry.Text = Helpers.StandardInstallPath; break; case 2: customLauncherEntry.Text = Helpers.StandardInstallWipPath; break; case 3: var currentLauncherIndex = GetLauncherComboIndex(); if (currentLauncherIndex == 3) // custom { customLauncherEntry.Text = project.ProjectProperties.GetValue(Helpers.RhinoLauncherProperty); } else { customLauncherEntry.Text = string.Empty; } break; case 4: customLauncherEntry.Text = Helpers.GetXcodeDerivedDataPath(outputFileName); break; } }