private void AddDefaultWorksets() { var newWorksets = ModelSetupWizardSettings.Default.DefaultWorksets; foreach (var newWorksetDef in newWorksets) { var segs = newWorksetDef.Split(';'); var b = false; bool.TryParse(segs[1].Trim(), out b); if (!string.IsNullOrEmpty(segs[0])) { if (segs.Length > 2 && !string.IsNullOrEmpty(segs[2])) { WorksetParameter wp = new WorksetParameter(segs[0], b, segs[2]); Worksets.Add(wp); } else { WorksetParameter wp = new WorksetParameter(segs[0], b, -1); Worksets.Add(wp); } } } }
public void AddWorkset() { Worksets.Add(new WorksetParameter(string.Empty, false, -1)); }
public void AddWorkset() { Worksets.Add(new WorksetParameter()); }