Exemplo n.º 1
0
 private void StartExternalApp(Tools.ExternalTool ExtA)
 {
     try
     {
         if (Node.GetNodeType(Node.SelectedNode) == Node.Type.Connection)
         {
             ExtA.Start((Info) Node.SelectedNode.Tag);
         }
     }
     catch (Exception ex)
     {
         Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg,
                                             (string)
                                             ("cMenTreeToolsExternalAppsEntry_Click failed (UI.Window.Tree)" +
                                              Constants.vbNewLine + ex.Message), true);
     }
 }
Exemplo n.º 2
0
                private void StartExternalApp(Tools.ExternalTool ExtA)
                {
                    try
                    {
                        if (this.TabController.SelectedTab != null)
                        {
                            if (this.TabController.SelectedTab.Tag is InterfaceControl)
                            {
                                InterfaceControl IC = (InterfaceControl)this.TabController.SelectedTab.Tag;

                                ExtA.Start(IC.Info);
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg,
                                                            (string)
                                                            ("cmenTabExternalAppsEntry_Click failed (UI.Window.Tree)" +
                                                             Constants.vbNewLine + ex.Message), true);
                    }
                }