/// <summary> /// Executes the action. /// </summary> public void ExecuteDo() { if (_pinnedLocations.Contains(_pinnedLocation)) { _existingIndex = _pinnedLocations.IndexOf(_pinnedLocation); _pinnedLocations.Remove(_pinnedLocation); } _pinnedLocations.Insert(0, _pinnedLocation); }
/// <summary> /// Executes the action. /// </summary> public void ExecuteDo() { _existingIndex = _pinnedLocations.IndexOf(_pinnedLocation); _pinnedLocations.Remove(_pinnedLocation); }