コード例 #1
0
 /// <summary>
 /// Resets this instance.
 /// </summary>
 public override void Reset()
 {
     IsLoaded           = false;
     SelectedDataSet    = DataSetsCollectionView.FirstOrDefault();
     SelectedProperty   = PropertyFilters.FirstOrDefault();
     PropertyFilterText = string.Empty;
     IsLoaded           = true;
     GetPage();
     if (CollectionItems.Count > 0)
     {
         CollectionItems.MoveCurrentToFirst();
     }
 }
コード例 #2
0
        /// <summary>
        /// Initializes the properties.
        /// </summary>
        protected override void InitProperties()
        {
            //new MeasuresFilter(this);
            HeaderName      = MANAGE_MEASURES;
            PropertyFilters = new ObservableCollection <string>
            {
                ModelPropertyFilterValues.NONE,
                ModelPropertyFilterValues.MEASURE_CODE,
                ModelPropertyFilterValues.MEASURE_NAME,
                ModelPropertyFilterValues.WEBSITE_NAME,
                ModelPropertyFilterValues.TOPIC_NAME,
                ModelPropertyFilterValues.SUBTOPIC_NAME
            };
            if (DataSetsCollectionView != null && !DataSetsCollectionView.Contains(ALL_DATASETS))
            {
                DataSetsCollectionView.Insert(0, ALL_DATASETS);
            }

            SelectedDataSet         = ALL_DATASETS;
            SelectedProperty        = ModelPropertyFilterValues.NONE;
            PropertyFilterText      = string.Empty;
            SelectedMeasureNameType = "Plain Title";
        }