public void SetSolutionItemEnabled(string solutionItemPath, bool enabled) { solutionItemPath = GetRelativeChildPath(Path.GetFullPath(solutionItemPath)); var list = UserProperties.GetValue <List <string> > ("DisabledProjects"); if (!enabled) { if (list == null) { list = new List <string> (); } if (!list.Contains(solutionItemPath)) { list.Add(solutionItemPath); } UserProperties.SetValue("DisabledProjects", list); } else if (list != null) { list.Remove(solutionItemPath); if (list.Count == 0) { UserProperties.RemoveValue("DisabledProjects"); } else { UserProperties.SetValue("DisabledProjects", list); } } }
internal bool IsSolutionItemEnabled(string solutionItemPath) { solutionItemPath = GetRelativeChildPath(Path.GetFullPath(solutionItemPath)); var list = UserProperties.GetValue <List <string> > ("DisabledProjects"); return(list == null || !list.Contains(solutionItemPath)); }
/// <summary> /// User setting of device for running app in simulator. Null means use default. /// </summary> public string GetDeviceTarget(MonoDroidProjectConfiguration conf) { //FIXME: do we really want this to be per-project/per-configuration? or should it be a global MD setting? var device = UserProperties.GetValue <string> (GetDeviceTargetKey(conf)); if (string.IsNullOrEmpty(device)) { return(null); } return(device); }
public override void LoadUserProperties() { base.LoadUserProperties(); var sitem = UserProperties.GetValue <string> ("StartupItem"); if (!string.IsNullOrEmpty(sitem)) { startItemFileName = GetAbsoluteChildPath(sitem); } var sitems = UserProperties.GetValue <string[]> ("StartupItems"); if (sitems != null && sitems.Length > 0) { multiStartupItems = sitems.Select(p => (string)GetAbsoluteChildPath(p)).ToList(); } }
/// <summary> /// User setting of device for running app in simulator. Null means use default. /// </summary> public IPhoneSimulatorTarget GetSimulatorTarget (IPhoneProjectConfiguration conf) { return UserProperties.GetValue<IPhoneSimulatorTarget> (GetSimulatorTargetKey (conf)); }