Ejemplo n.º 1
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            FrmCauHinhDocAmThanh_Create form = new FrmCauHinhDocAmThanh_Create(0, idChuyen, configType);

            form.sender = new FrmCauHinhDocAmThanh_Create.SEND(LoadDataToGridView);
            form.ShowDialog();
        }
Ejemplo n.º 2
0
 private void dgListConfig_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         int rowIndex    = e.RowIndex;
         int columnIndex = e.ColumnIndex;
         idSoundReadConfig = int.Parse(dgListConfig.Rows[rowIndex].Cells["Id"].Value.ToString());
         if (columnIndex == 2)
         {
             FrmCauHinhDocAmThanh_Create form = new FrmCauHinhDocAmThanh_Create(idSoundReadConfig, idChuyen, configType);
             form.sender = new FrmCauHinhDocAmThanh_Create.SEND(LoadDataToGridView);
             form.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Lỗi: " + ex.Message);
     }
 }