SIL.FieldWorks.Common.Framework.DetailControls.Slice.Slice.IsVisibilityItemChecked C# (CSharp) Méthode

IsVisibilityItemChecked() protected méthode

protected IsVisibilityItemChecked ( string visibility ) : bool
visibility string
Résultat bool
		protected bool IsVisibilityItemChecked(string visibility)
		{
			CheckDisposed();

			XmlNode lastPartRef = null;
			foreach (object obj in Key)
			{
				var node = obj as XmlNode;
				if (node == null || node.Name != "part" || XmlUtils.GetOptionalAttributeValue(node, "ref", null) == null)
					continue;
				lastPartRef = node;
			}
			return lastPartRef != null && XmlUtils.GetOptionalAttributeValue(lastPartRef, "visibility", "always") == visibility;
		}