Ejemplo n.º 1
0
        /// <summary>
        /// returns a list of the members of the set based on its name parameter
        /// </summary>
        /// <param name="value"></param>
        /// <returns>the name of the set to be retrieved</returns>
        public string[] GetListOfSetContent(string value)
        {
            var setContent = ExtraSets.Where(x => x.Key == value)
                             .Select(x => x.Value)
                             .First();

            return(setContent);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the collection of fields belonging to incoming set's name parameter,
        /// and sends this to the view through an Event.
        /// </summary>
        /// <param name="value"></param>
        private void GetSetContent(string value)
        {
            var setContent = ExtraSets.Where(x => x.Key == value)
                             .Select(x => x.Value)
                             .First();

            Ea.Publish(new DisplaySetContentEventModel()
            {
                Data = setContent
            });
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Forms a list of the names of the set, to which the View's Dropbox can bind.
        /// </summary>
        /// <returns></returns>
        private List <string> GetExtraSetNames()
        {
            var list = new List <string>();
            var keys = ExtraSets.Select(x => x.Key);

            foreach (var key in keys)
            {
                list.Add(key);
            }
            return(list);
        }