예제 #1
0
 //En el evento del botón se obtienen los items seleccionados y se imprimen en un mensaje
 private void BtPlot_Click(object sender, EventArgs e)
 {
     if (mchoice != null)
     {
         ArrayList ar  = mchoice.getSelected();
         string    ans = "";
         for (int i = 0; i < ar.Count; i++)
         {
             ans += (string)ar[i] + " ";
         }
         MessageBox.Show(null, ans, "Seleccionados", MessageBoxButtons.OK);
     }
 }
예제 #2
0
 private void btPlot_Click(object sender, System.EventArgs e)
 {
     //display the selected items in a message box
     if (mchoice != null)
     {
         ArrayList ar  = mchoice.getSelected();
         string    ans = "";
         for (int i = 0; i < ar.Count; i++)
         {
             ans += (string)ar[i] + " ";
         }
         MessageBox.Show(null, ans, "Selected equities", MessageBoxButtons.OK);
     }
 }