public BaseItemsViewModel(FeatureLayerHelper featureLayerHelper)
        {
            Init();
              SetFeatureLayer(featureLayerHelper);

              ViewModel = this;
              Properties = new Dictionary<string, string>();

              ConvertToLocalTimeZone = true;

              // init commands
              GroupByDelegatingCommand = new DelegatingCommand(OnGroupByAction);

              //hk Update(featureLayer);
        }
Пример #2
0
        public BaseItemsViewModel(FeatureLayerHelper featureLayerHelper)
        {
            Init();
            SetFeatureLayer(featureLayerHelper);

            ViewModel  = this;
            Properties = new Dictionary <string, string>();

            ConvertToLocalTimeZone = true;

            // init commands
            GroupByDelegatingCommand = new DelegatingCommand(OnGroupByAction);

            //hk Update(featureLayer);
        }
Пример #3
0
        private void Init()
        {
            TrackIdFieldName  = "OBJECTID";
            GroupByFieldName  = null;
            SortByFieldName1  = Stop.SequenceFieldAlias;
            SortByFieldName2  = null;
            SortByFieldOrder1 = System.ComponentModel.ListSortDirection.Ascending;
            SortByFieldOrder2 = System.ComponentModel.ListSortDirection.Ascending;

            // Read Configuration Settings
            StatusRemarkLookup          = (NameValueCollection)ConfigurationManager.GetSection("stopConfigurationGroup/statusRemarkLookupSection");
            StatusInputLookup           = (NameValueCollection)ConfigurationManager.GetSection("stopConfigurationGroup/statusInputLookupSection");
            StopRelativeImagePathLookup = (NameValueCollection)ConfigurationManager.GetSection("stopConfigurationGroup/iconLookupSection");

            // init commands
            CutCommand   = new DelegatingCommand(OnCut);
            PasteCommand = new DelegatingCommand(OnPaste);
            AddCommand   = new DelegatingCommand(OnAdd);
            EditCommand  = new DelegatingCommand(OnEdit);
        }
        private void Init()
        {
            TrackIdFieldName = "OBJECTID";
              GroupByFieldName = null;
              SortByFieldName1 = Stop.SequenceFieldAlias;
              SortByFieldName2 = null;
              SortByFieldOrder1 = System.ComponentModel.ListSortDirection.Ascending;
              SortByFieldOrder2 = System.ComponentModel.ListSortDirection.Ascending;

              // Read Configuration Settings
              StatusRemarkLookup          = (NameValueCollection)ConfigurationManager.GetSection("stopConfigurationGroup/statusRemarkLookupSection");
              StatusInputLookup           = (NameValueCollection)ConfigurationManager.GetSection("stopConfigurationGroup/statusInputLookupSection");
              StopRelativeImagePathLookup = (NameValueCollection)ConfigurationManager.GetSection("stopConfigurationGroup/iconLookupSection");

              // init commands
              CutCommand   = new DelegatingCommand(OnCut);
              PasteCommand = new DelegatingCommand(OnPaste);
              AddCommand   = new DelegatingCommand(OnAdd);
              EditCommand  = new DelegatingCommand(OnEdit);
        }