Beispiel #1
0
        /// <summary>
        /// 新建合作客户
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            FrmCooperativeClientNew clinetnew = new FrmCooperativeClientNew();

            clinetnew._ParentClientList = this;
            clinetnew.ShowDialog();
            getCustomer();
        }
Beispiel #2
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmEdit_Click(object sender, EventArgs e)
        {
            //string id =dataGridView1.SelectedCells[0].Value.ToString();
            Model_Customer          cust      = dataGridView1.SelectedRows[0].Tag as Model_Customer;
            FrmCooperativeClientNew clinetnew = new FrmCooperativeClientNew();

            //clinetnew.ID = id.Trim() ;
            clinetnew.cust = cust;
            clinetnew._ParentClientList = this;
            clinetnew.ShowDialog();
            getCustomer();
        }