Exemplo n.º 1
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method determines whether or not any metadata is
        /// different between the input instance and the current instance.</summary>
        ///
        /// <param name="inputIndexProperty">The indexproperty to compare metadata.</param>
        ///--------------------------------------------------------------------------------
        public bool IsIdenticalMetadata(IndexProperty inputIndexProperty)
        {
            if (IndexID.GetGuid() != inputIndexProperty.IndexID.GetGuid())
            {
                return(false);
            }
            if (PropertyID.GetGuid() != inputIndexProperty.PropertyID.GetGuid())
            {
                return(false);
            }
            if (Order.GetInt() != inputIndexProperty.Order.GetInt())
            {
                return(false);
            }
            if (IsAutoUpdated.GetBool() != inputIndexProperty.IsAutoUpdated.GetBool())
            {
                return(false);
            }
            if (Description.GetString() != inputIndexProperty.Description.GetString())
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }
Exemplo n.º 2
0
        public bool IndexEquals(IndexID iid)
        {
            if (iid == null)
            {
                return(false);
            }

            return(TableEquals(this, iid) && iid.IndexName.Equals(IndexName));
        }
Exemplo n.º 3
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < DT.Rows.Count)
     {
         IndexID = (int)dataGridView1.Rows[e.RowIndex].Cells[0].Value;
         //textBox1.Text = (string)dataGridView1.Rows[e.RowIndex].Cells[1].Value;
         //textBox2.Text = (string)dataGridView1.Rows[e.RowIndex].Cells[2].Value;
         //textBox3.Text = (string)dataGridView1.Rows[e.RowIndex].Cells[3].Value;
         //textBox4.Text = (string)dataGridView1.Rows[e.RowIndex].Cells[4].Value;
         //textBox5.Text = (string)dataGridView1.Rows[e.RowIndex].Cells[5].Value;
         //textBox6.Text = (string)dataGridView1.Rows[e.RowIndex].Cells[6].Value;
         txtID.Text = IndexID.ToString();
     }
 }
Exemplo n.º 4
0
        //public uint UnkFlags0 { get { return (uint)((PolyFlags0 >> 8) & 0xFF); } } //always 0
        //public uint UnkFlags1 { get { return (uint)((PolyFlags1 >> 17) & 0xFFFF); } } //always 0
        //public uint UnkFlags2 { get { return (uint)((PolyFlags2 >> 24) & 0xFF); } } //always 0


        public override string ToString()
        {
            return
                (PolyFlags0.ToString() + ", " +
                 //IndexFlags.ToString() + ", " +
                 IndexCount.ToString() + ", " + //IndexUnk.ToString() + ", " +
                 IndexID.ToString() + ", " + AreaID.ToString() + ", " +
                 CellAABB.ToString() + ", " +
                 //PolyFlags1.ToString() + ", " +
                 //PolyFlags2.ToString() + ", " +
                 //PartFlags.ToString() + ", " + //PartUnk1.ToString() + ", " +
                 PartID.ToString() + ", " +
                 PortalLinkCount.ToString() + ", " +
                 PortalLinkID.ToString());
        }
Exemplo n.º 5
0
 public override string ToString()
 {
     return
         //Unknown_28h.Bin + ", (" + Unknown_28h_8a.ToString() + ", " + Unknown_28h_8b.ToString() + "), " +
         (Unknown_00h.ToString() + ", " +
          //IndexFlags.ToString() + ", " +
          IndexCount.ToString() + ", " + //IndexUnk.ToString() + ", " +
          IndexID.ToString() + ", " + AreaID.ToString() + ", " +
          CellAABB.ToString() + ", " +
          Unknown_24h.Hex + ", " +
          Unknown_28h.Hex + ", " +
          //PartFlags.ToString() + ", " + //PartUnk1.ToString() + ", " +
          PartID.ToString() + ", " +
          PartUnk2.ToString() + ", " +
          PortalID.ToString());
 }
        private void Employers_ChangeID(object sender, EventArgs e)
        {
            IndexRow = dataGridView1.CurrentRow.Index;

            if (IndexRow < DT.Rows.Count)
            {
                IndexID             = (int)dataGridView1.Rows[IndexRow].Cells["ID"].Value;
                txtID.Text          = IndexID.ToString();
                txtName.Text        = (string)dataGridView1.Rows[IndexRow].Cells["Name"].Value;
                txtAdress.Text      = (string)dataGridView1.Rows[IndexRow].Cells[2].Value;
                txtEmail.Text       = (string)dataGridView1.Rows[IndexRow].Cells[3].Value;
                txtPhone.Text       = (string)dataGridView1.Rows[IndexRow].Cells[4].Value;
                txtSite.Text        = (string)dataGridView1.Rows[IndexRow].Cells[5].Value;
                txtDescription.Text = (string)dataGridView1.Rows[IndexRow].Cells[6].Value;
            }
        }
Exemplo n.º 7
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to Point return false.
            Student st = obj as Student;

            if (st == null)
            {
                return(false);
            }
            return((IndexID.Equals(st.IndexID)) &&
                   (FirstName == st.FirstName) &&
                   (LastName == st.LastName) &&
                   (City == st.City) &&
                   (DateOfBirth.Equals(st.DateOfBirth)));
        }
Exemplo n.º 8
0
        //private bool canUpdate;
        //private bool isStudentSelected()
        //{
        //    return SelectedStudent != null;
        //}

        private bool isSelectedStudentAsPrevious()
        {
            if (City != null)
            {
                if (!City.Equals(SelectedStudent.City))
                {
                    return(false);
                }
            }
            else if (SelectedStudent.City != null)
            {
                if (!SelectedStudent.City.Equals(City))
                {
                    return(false);
                }
            }



            if (DateOfBirth != null)
            {
                if (!DateOfBirth.Equals(SelectedStudent.DateOfBirth))
                {
                    return(false);
                }
            }
            else if (SelectedStudent.DateOfBirth != null)
            {
                if (!SelectedStudent.DateOfBirth.Equals(DateOfBirth))
                {
                    return(false);
                }
            }



            if (FirstName != null)
            {
                if (!FirstName.Equals(SelectedStudent.FirstName))
                {
                    return(false);
                }
            }
            else if (SelectedStudent.FirstName != null)
            {
                if (!SelectedStudent.FirstName.Equals(FirstName))
                {
                    return(false);
                }
            }



            if (LastName != null)
            {
                if (!LastName.Equals(SelectedStudent.LastName))
                {
                    return(false);
                }
            }
            else if (SelectedStudent.LastName != null)
            {
                if (!SelectedStudent.LastName.Equals(LastName))
                {
                    return(false);
                }
            }


            if (SelectedGroup != null)
            {
                if (!SelectedGroup.Equals(SelectedStudent.Group))
                {
                    return(false);
                }
            }
            else if (SelectedStudent.Group != null)
            {
                if (!SelectedStudent.Group.Equals(SelectedGroup))
                {
                    return(false);
                }
            }



            if (IndexID != null)
            {
                if (!IndexID.Equals(SelectedStudent.IndexID))
                {
                    return(false);
                }
            }
            else if (SelectedStudent.IndexID != null)
            {
                if (!SelectedStudent.IndexID.Equals(IndexID))
                {
                    return(false);
                }
            }

            return(true);
        }
Exemplo n.º 9
0
 public static int GetIndexHashCode(IndexID iid)
 {
     return(GetTableHashCode(iid) * 29 + iid.IndexName.GetHashCode());
 }
Exemplo n.º 10
0
 public override string ToString()
 {
     return(IndexID.ToString() + ", " + IndexCount.ToString() + ", " + Flags1.ToString() + ", " + Flags2.ToString() + ", " + Flags3.ToString());
 }