public WorkflowDescriptor(XElement xml) { if(xml == null) { return; } ResourceName = xml.AttributeSafe("ResourceName"); ResourceID = xml.AttributeSafe("ResourceID"); IsSelected = true; }