/// <summary>
        /// Returns a new marking select popup control ViewModel instance for the specified
        /// section.
        /// </summary>
        /// <param name="section">
        /// The section.
        /// </param>
        /// <returns>
        /// A new marking select popup control ViewModel instance.
        /// </returns>
        public IMarkingSelectVM GetMarkingSelectVM(IMarkableSection section)
        {
            if (section is IEntranceSection)
            {
                return(GetEntranceMarkingSelectPopupVM(section.Marking));
            }

            return(GetNonEntranceMarkingSelectPopupVM(section.Marking));
        }
        /// <summary>
        /// Returns a new marking select popup control ViewModel instance for the specified
        /// section.
        /// </summary>
        /// <param name="section">
        /// The section.
        /// </param>
        /// <returns>
        /// A new marking select popup control ViewModel instance.
        /// </returns>
        internal static MarkingSelectVM GetMarkingSelectVM(IMarkableSection section)
        {
            if (section == null)
            {
                throw new ArgumentNullException(nameof(section));
            }

            if (section is IEntranceSection)
            {
                return(GetEntranceMarkingSelectPopupVM(section.Marking));
            }

            return(GetNonEntranceMarkingSelectPopupVM(section.Marking));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns a new marking map location control ViewModel instance for the speicifed
 /// section.
 /// </summary>
 /// <param name="section">
 /// The section.
 /// </param>
 /// <returns>
 /// A new marking map location control ViewModel instance.
 /// </returns>
 private static MarkingMapLocationVM GetMapLocationMarkingControlVM(IMarkableSection section)
 {
     return(new MarkingMapLocationVM(section));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns a new marking map location control ViewModel instance for the speicifed
 /// section.
 /// </summary>
 /// <param name="section">
 /// The section.
 /// </param>
 /// <returns>
 /// A new marking map location control ViewModel instance.
 /// </returns>
 private IMarkingMapLocationVM GetMapLocationMarkingControlVM(IMarkableSection section)
 {
     return(_markingFactory(section));
 }