示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddTrucks Obj = new AddTrucks(this);

            Obj.ctr = 1;
            Obj.ShowDialog();
        }
示例#2
0
        private void listView1_DoubleClick(object sender, EventArgs e)
        {
            btnDelete.Visible = false;
            AddTrucks    Obj  = new AddTrucks(this);
            ListViewItem item = listView1.SelectedItems[0];

            Obj.ctr              = 2;
            Obj.oldb             = lblBNum.Text;
            Obj.txtBodyNum.Text  = lblBNum.Text;
            Obj.txtPlateNum.Text = item.SubItems[1].Text;
            Obj.cbType.Text      = item.SubItems[2].Text;
            Obj.cbGar.Text       = item.SubItems[3].Text;
            Obj.ShowDialog();
        }