Exemple #1
0
        /// <summary>
        /// Populate the Via collection, based on the from and to value
        /// </summary>
        private void PopulateViaCollection()
        {
            this.jnyViaIndex = 0;

            // Do nothing if Jny To is invalid.
            if (this.JnyToIsValid() &&
                this.JnyFromIsValid())
            {
                this.jnyViaList =
                    journeyController.GetViaCollection(
                        this.JnyFromList[this.JnyFromIndex],
                        this.JnyToList[this.JnyToIndex]);
            }
            else
            {
                this.jnyViaList = new ObservableCollection <string>();
                this.jnyViaList.Add(string.Empty);
            }
        }