Example #1
0
 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);
         }
     }
 }
Example #2
0
 public FrmCadastroFuncoesDoUsuario()
 {
     InitializeComponent();
     CadastroDeFuncoesDoUsuario.CarregarFuncoesCadastradas();
     VincularListAoDataSource();
 }
Example #3
0
 private void btnSalvar_Click(object sender, EventArgs e)
 {
     CadastroDeFuncoesDoUsuario.SalvarModificacoes();
     Close();
 }