private void btnIr_Click(object sender, EventArgs e)
 {
     if(cbMacros.SelectedIndex == 1)
     {
         Macros.Macro42 myMacro42 = new Macros.Macro42(listaEconomicos);
         this.Hide();
         myMacro42.ShowDialog();
         myMacro42.Close();
         this.Show();
     }
     else if(cbMacros.SelectedIndex == 2)
     {
         Macros.Macro43 myMacro43 = new Macros.Macro43(listaEconomicos);
         this.Hide();
         myMacro43.ShowDialog();
         myMacro43.Close();
         this.Show();
     }
 }
Exemplo n.º 2
0
 private void btnIr_Click(object sender, EventArgs e)
 {
     if (cbMacros.SelectedIndex == 1)
     {
         Macros.Macro42 myMacro42 = new Macros.Macro42(listaEconomicos);
         this.Hide();
         myMacro42.ShowDialog();
         myMacro42.Close();
         this.Show();
     }
     else if (cbMacros.SelectedIndex == 2)
     {
         Macros.Macro43 myMacro43 = new Macros.Macro43(listaEconomicos);
         this.Hide();
         myMacro43.ShowDialog();
         myMacro43.Close();
         this.Show();
     }
 }