コード例 #1
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();
     }
 }
コード例 #2
0
ファイル: Nav.cs プロジェクト: SlOneRPC/RPF-Converter
        //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());
        }
コード例 #3
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());
 }
コード例 #4
0
        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;
            }
        }
コード例 #5
0
 public override string ToString()
 {
     return(IndexID.ToString() + ", " + IndexCount.ToString() + ", " + Flags1.ToString() + ", " + Flags2.ToString() + ", " + Flags3.ToString());
 }