public bool AddSupport() { var result = false; if (!IsCalculatedSeverityEnabled) { var schema = GetSchema(); _model.ApplySchema(schema.Id); result = true; } return(result); }
public bool AddSupport() { var result = false; if (!IsEffortSupported) { var schema = GetSchema(); _model.ApplySchema(schema.Id); result = true; } return(result); }
private void _ok_Click(object sender, EventArgs e) { var list = _schemas.CheckedItems.OfType <IPropertySchema>().Select(x => x.Id).ToArray(); if (list.Any()) { var def = new DuplicationDefinition() { PropertySchemas = list }; if (_model.Merge(_template, def) && _applySchemas.Checked) { foreach (var id in list) { _model.ApplySchema(id); } } } }