Ejemplo n.º 1
0
        public bool Equals([AllowNull] ModelA other)
        {
            if (other == null)
            {
                return(false);
            }

            return(IntValue == other.IntValue &&
                   GuidValue == other.GuidValue &&
                   StringValue == other.StringValue &&
                   DoubleValue == other.DoubleValue &&
                   FloatValue == other.FloatValue &&
                   ByteValue == other.ByteValue &&
                   SmallDouble == other.SmallDouble &&
                   SmallDecimal == other.SmallDecimal &&
                   SmallFloat == other.SmallFloat &&
                   SmallDouble2 == other.SmallDouble2 &&
                   BufferValue.SequenceEqual(other.BufferValue) &&
                   ArrayIntValue.SequenceEqual(other.ArrayIntValue) &&
                   ArrayStringValue.SequenceEqual(other.ArrayStringValue) &&
                   ModelBValue.Equals(other.ModelBValue) &&
                   ModelBListValue.SequenceEqual(other.ModelBListValue) &&
                   ModelBCollection.SequenceEqual(other.ModelBCollection) &&
                   MapValue.SequenceEqual(other.MapValue) &&
                   ListStringValue.SequenceEqual(other.ListStringValue) &&
                   EmptyList.SequenceEqual(other.EmptyList));
        }
        // Cancel the Editor and clear graphics and search results from the map
        private void clearSearchBtn_Click(object sender, RoutedEventArgs e)
        {
            if (MyMapView.Editor.IsActive)
            {
                MyMapView.Editor.Cancel.Execute(null);
            }

            _drawGraphicsOverlay.Graphics.Clear();
            _searchResults.Clear();

            SearchText.Clear();
            BufferValue.Clear();

            ResultsArea.Visibility   = Visibility.Collapsed;
            NoResultsArea.Visibility = Visibility.Visible;

            searchBtn.IsEnabled      = false;
            clearSearchBtn.IsEnabled = false;
        }