Beispiel #1
0
        private void iteNew_Click(object sender, EventArgs e)
        {
            ItemDetail _iteDetail = new ItemDetail();

            _iteDetail.MdiParent = this;
            _iteDetail.Show();
        }
Beispiel #2
0
 private void btnView_Click(object sender, EventArgs e)
 {
     int i = 0;
     ItemDetail[] _iteDetail = new ItemDetail[255];
     while (i < dataGridView1.SelectedRows.Count && i < 256)
     {
         _iteDetail[i] = new ItemDetail();
         _iteDetail[i].MdiParent = this.MdiParent;
         _iteDetail[i].Show();
         _iteDetail[i]._p = new Prument.ORM.Products();
         _iteDetail[i]._p.ID = Int32.Parse(dataGridView1.SelectedRows[i].Cells["pID"].Value.ToString());
         _iteDetail[i].DataBind();
         _iteDetail[i].Status = EditStatus.Saved;
         i++;
     }
 }
Beispiel #3
0
        private void btnView_Click(object sender, EventArgs e)
        {
            int i = 0;

            ItemDetail[] _iteDetail = new ItemDetail[255];
            while (i < dataGridView1.SelectedRows.Count && i < 256)
            {
                _iteDetail[i]           = new ItemDetail();
                _iteDetail[i].MdiParent = this.MdiParent;
                _iteDetail[i].Show();
                _iteDetail[i]._p    = new Prument.ORM.Products();
                _iteDetail[i]._p.ID = Int32.Parse(dataGridView1.SelectedRows[i].Cells["pID"].Value.ToString());
                _iteDetail[i].DataBind();
                _iteDetail[i].Status = EditStatus.Saved;
                i++;
            }
        }
Beispiel #4
0
 private void iteNew_Click(object sender, EventArgs e)
 {
     ItemDetail _iteDetail = new ItemDetail();
     _iteDetail.MdiParent = this;
     _iteDetail.Show();
 }