/// <summary> /// Determines whether this instance [can apply context command]. /// </summary> /// <returns> /// <c>true</c> if this instance [can apply context command]; otherwise, <c>false</c>. /// </returns> private bool CanApplyContextCommand() { return(SelectedStates.Count > 0 && SelectedRegionType.IsSubclassOf(typeof(Region))); }
public override bool IsValid() { return(SelectedStates.Count > 0 && SelectedRegionType.IsSubclassOf(typeof(Region))); }