예제 #1
0
        private void NewClick()
        {
            //radGridView1.ReadOnly = false;
            //radGridView1.AllowAddNewRow = false;
            //btnEdit.Enabled = false;
            //btnView.Enabled = true;
            //radGridView1.Rows.AddNew();
            var c = new CustomerContacts(0, TypeAction.Add);

            c.ShowDialog();
            DataLoad();
        }
예제 #2
0
 private void EditClick()
 {
     //radGridView1.ReadOnly = false;
     //btnEdit.Enabled = false;
     //btnView.Enabled = true;
     //radGridView1.AllowAddNewRow = false;
     if (radGridView1.CurrentCell != null)
     {
         int cstm = radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt();
         var c    = new CustomerContacts(cstm, TypeAction.Edit);
         c.ShowDialog();
         DataLoad();
     }
 }