private void btnAdd_Click(object sender, EventArgs e)
        {
            TCU_车型信息 frm = new TCU_车型信息(null, true);

            frm.ShowDialog();

            RefreshDataGridView(multiSelectTreeView1.SelectedNode == null ?
                                null : multiSelectTreeView1.SelectedNode.Tag.ToString());
        }
        private void customDataGridView1_DoubleClick(object sender, EventArgs e)
        {
            if (customDataGridView1.CurrentRow == null)
            {
                return;
            }

            TCU_车型信息 frm =
                new TCU_车型信息(customDataGridView1.CurrentRow.Cells["车型代号"].Value.ToString(), false);

            frm.ShowDialog();
        }
예제 #3
0
        private void llbCarModelInfo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (txtCarModelNo.Text.Trim().Length == 0)
            {
                MessageDialog.ShowPromptMessage("请选择【车型代号】");
                return;
            }

            TCU_车型信息 frm = new TCU_车型信息(txtCarModelNo.Text.Trim(), false);

            frm.ShowDialog();
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (customDataGridView1.CurrentRow == null)
            {
                MessageDialog.ShowPromptMessage("请选择需要修改的记录行");
                return;
            }

            TCU_车型信息 frm =
                new TCU_车型信息(customDataGridView1.CurrentRow.Cells["车型代号"].Value.ToString(), true);

            frm.ShowDialog();

            RefreshDataGridView(multiSelectTreeView1.SelectedNode == null ?
                                null : multiSelectTreeView1.SelectedNode.Tag.ToString());
        }