Exemplo n.º 1
0
        /// <summary>
        /// Qualifies this object against another one.
        /// </summary>
        /// <param name="target">The target.</param>
        /// <param name="dir">The direction.</param>
        /// <returns></returns>
        public Modification qualifyVersus(View target, Direction dir)
        {
            Qualifier = Modification.None;

            Modification mod = FieldCont.qualifyVersus(target.FieldCont, dir);

            if (Qualifier == Modification.None && mod != Modification.None)
            {
                Qualifier = mod;
            }

            return(Qualifier);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Makes a tree node from this object.
        /// </summary>
        /// <returns></returns>
        public override TreeNode toTreeNode()
        {
            TreeNode Node = new TreeNode();

            Node.Text = Name;

            Base.SetNodeImageFromQualifier(Node, Qualifier, IsGhost);

            Node.Nodes.Add(FieldCont.toTreeNode());

            Node.Tag = this;
            if (IsGhost)
            {
                Node.ForeColor = Color.Gray;
            }

            return(Node);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Qualifies this object against another one.
        /// </summary>
        /// <param name="target">The target.</param>
        /// <param name="dir">The direction.</param>
        /// <returns></returns>
        public Modification qualifyVersus(Table target, Direction dir)
        {
            Qualifier = Modification.None;

            //----------------------------------------------------------------

            Modification mod = FieldCont.qualifyVersus(target.FieldCont, dir);

            if (Qualifier == Modification.None && mod != Modification.None)
            {
                Qualifier = mod;
            }

            //----------------------------------------------------------------

            mod = ConstraintCont.qualifyVersus(target.ConstraintCont, dir);

            if (Qualifier == Modification.None && mod != Modification.None)
            {
                Qualifier = mod;
            }

            //----------------------------------------------------------------

            if (m_DataCont != null && target.DataCont != null)
            {
                mod = DataCont.qualifyVersus(target.DataCont, dir);

                if (Qualifier == Modification.None && mod != Modification.None)
                {
                    Qualifier = mod;
                }
            }

            //----------------------------------------------------------------

            return(Qualifier);
        }