private void AddLanguageButton_Click(object sender, EventArgs e)
 {
     try
     {
         frmAddText frmAddLanguageID = new frmAddText();
         if (frmAddLanguageID.ShowDialog() == DialogResult.OK)
         {
             string columnName = frmAddLanguageID.AddedText;
             if (columnName != "")
             {
                 int col = this.valueDomainDataGrid.Columns.Add(columnName, columnName);
             }
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }
示例#2
0
 private void AddLanguageButton_Click(object sender, EventArgs e)
 {
     try
     {
         frmAddText frmAddLanguageID = new frmAddText();
         if (frmAddLanguageID.ShowDialog() == DialogResult.OK)
         {
             string columnName = frmAddLanguageID.AddedText;
             if (columnName != "")
             {
                 int col = DescriptionsDataGrid.Columns.Add(columnName, columnName);
             }
         }
     }
     catch (Exception ex)
     {
         CommonItem.ErrManger.ErrorManagement(ex, false, this);
     }
 }