public MyDataConnection get_SelectedDataConnection(int index)
 {
     try
     {
         return(this.List_dataconnection[index]);
     }
     catch (Exception ex)
     {
         while (true)
         {
             myDialog dialog = new myDialog(ex.Message);
             if (dialog.ShowDialog() == true)
             {
                 break;
             }
         }
         return(null);
     }
 }
 public MyDataConnection get_SelectedDataConnection(int index)
 {
     try
     {
         return this.List_dataconnection[index];
     }
     catch (Exception ex)
     {
         while (true)
         {
             myDialog dialog = new myDialog(ex.Message);
             if (dialog.ShowDialog() == true)
             {
                 break;
             }
         }
         return null;
     }
 }