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); }
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); }
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); }