Esempio n. 1
0
 public bool Edit(IWin32Window parentWindow, Variables variables, Connections connections)
 {
     try
     {
         // Create UI form and display
         ReverseStringUIForm ui     = new ReverseStringUIForm(_dtsComponentMetaData, _serviceProvider, connections);
         DialogResult        result = ui.ShowDialog(parentWindow);
         // Set return value to represent DialogResult. This tells the
         // managed wrapper to persist any changes made
         // on the component input and/or output, or properties.
         if (result == DialogResult.OK)
         {
             return(true);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
     return(false);
 }
Esempio n. 2
0
 public bool Edit(IWin32Window parentWindow, Variables variables, Connections connections)
 {
     try
     {
         // Create UI form and display
         ReverseStringUIForm ui = new ReverseStringUIForm(_dtsComponentMetaData, _serviceProvider, connections);
         DialogResult result = ui.ShowDialog(parentWindow);
         // Set return value to represent DialogResult. This tells the
         // managed wrapper to persist any changes made
         // on the component input and/or output, or properties.
         if (result == DialogResult.OK)
         {
             return true;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
     return false;
 }