Exemple #1
0
        /// <summary>
        /// Checks whether represented data equals to corresponding data of object
        /// </summary>
        /// <param name="obj">Compared object</param>
        /// <returns></returns>
        public bool ContainedDataEquals(IDisplayingEntity obj)
        {
            if (!(obj is DispatcheredTemplateDetailListScreen))
            {
                return(false);
            }
            if (!(obj.ContainedData is TemplateAircraft))
            {
                return(false);
            }
            DispatcheredTemplateDetailListScreen dispatcheredTemplateDetailListScreen = obj as DispatcheredTemplateDetailListScreen;

            return(detailContainer == dispatcheredTemplateDetailListScreen.detailContainer
                   //&& initialFilter.Equals(dispatcheredTemplateDetailListScreen.initialFilter)
                   && AdditionalFilter.Equals(dispatcheredTemplateDetailListScreen.AdditionalFilter));
        }
Exemple #2
0
        /// <summary>
        /// Checks whether represented data equals to corresponding data of object
        /// </summary>
        /// <param name="obj">Compared object</param>
        /// <returns></returns>
        public bool ContainedDataEquals(IDisplayingEntity obj)
        {
            if (!(obj is DispatcheredComponentStatusControl))
            {
                return(false);
            }
            if (!(obj.ContainedData is Aircraft))
            {
                return(false);
            }
            DispatcheredComponentStatusControl dispatcheredComponentStatusControl = obj as DispatcheredComponentStatusControl;

            return(detailContainer == dispatcheredComponentStatusControl.detailContainer &&
                   initialFilter.Equals(dispatcheredComponentStatusControl.initialFilter) &&
                   AdditionalFilter.Equals(dispatcheredComponentStatusControl.AdditionalFilter));
        }