Exemplo n.º 1
0
        private void buttonProcurar_Click(object sender, EventArgs e)
        {
            btnIniciar.Enabled            = false;
            textBoxSelecionePlanilha.Text = ChooseFolder(openFileDialogSelecionarPlanilha);

            try
            {
                doThings = new DoThings(textBoxSelecionePlanilha.Text);

                comboBoxDePara.DataSource    = new BindingSource(doThings.Abas, null);
                comboBoxDePara.SelectedIndex = -1;
                comboBoxDePara.DisplayMember = "Key";
                comboBoxDePara.ValueMember   = "Value";

                comboBoxAbaLeituraEscrita.DataSource    = new BindingSource(doThings.Abas, null);
                comboBoxAbaLeituraEscrita.SelectedIndex = -1;
                comboBoxAbaLeituraEscrita.DisplayMember = "Key";
                comboBoxAbaLeituraEscrita.ValueMember   = "Value";
            }
            catch (Exception ex)
            {
                Console.WriteLine("");
            }
        }
Exemplo n.º 2
0
 private void Yarr(DoThings stuff)
 {
     stuff("Hello World", args);
 }