Esempio n. 1
0
        private void Add()
        {
            frmManage_RL_Edit frm = new frmManage_RL_Edit("Add", 0, "", "", "", "", 1);

            frm.ShowDialog();

            if (frm.DialogResult != DialogResult.Cancel)
            {
                Search();
            }
        }
Esempio n. 2
0
        private void cms1_Copy_Click(object sender, EventArgs e)
        {
            string strTrade      = dgv1.CurrentRow.Cells[1].Value.ToString();
            string strCarSeries  = dgv1.CurrentRow.Cells[2].Value.ToString();
            string strCarType    = dgv1.CurrentRow.Cells[3].Value.ToString();
            string strSourcePath = dgv1.CurrentRow.Cells[5].Value.ToString();
            int    iCategoryID   = int.Parse(dgv1.CurrentRow.Cells[4].Value.ToString());

            frmManage_RL_Edit frm = new frmManage_RL_Edit("Add", 0, strTrade, strCarSeries, strCarType, strSourcePath, iCategoryID);

            frm.ShowDialog();

            if (frm.DialogResult != DialogResult.Cancel)
            {
                Search();
            }
        }
Esempio n. 3
0
        private void Edit()
        {
            if (dgv1 == null || dgv1.Rows.Count == 0)
            {
                return;
            }

            int    iPid          = int.Parse(dgv1.CurrentRow.Cells[0].Value.ToString());
            string strTrade      = dgv1.CurrentRow.Cells[1].Value.ToString();
            string strCarSeries  = dgv1.CurrentRow.Cells[2].Value.ToString();
            string strCarType    = dgv1.CurrentRow.Cells[3].Value.ToString();
            string strSourcePath = dgv1.CurrentRow.Cells[5].Value.ToString();
            int    iCategoryID   = int.Parse(dgv1.CurrentRow.Cells[4].Value.ToString());

            frmManage_RL_Edit frm = new frmManage_RL_Edit("Edit", iPid, strTrade, strCarSeries, strCarType, strSourcePath, iCategoryID);

            frm.ShowDialog();

            if (frm.DialogResult != DialogResult.Cancel)
            {
                Search();
            }
        }