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; } }
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); } }