private void abrirToolStripButton_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { try { funcoesDoUsuarioBindingSource.DataSource = CadastroDeFuncoesDoUsuario.CarregarArqFuncoes(openFileDialog1.FileName); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
public FrmCadastroFuncoesDoUsuario() { InitializeComponent(); CadastroDeFuncoesDoUsuario.CarregarFuncoesCadastradas(); VincularListAoDataSource(); }
private void btnSalvar_Click(object sender, EventArgs e) { CadastroDeFuncoesDoUsuario.SalvarModificacoes(); Close(); }