Click or drag to resize

ITpsViewLaunchServices Interface

Define services provided by the FlexPendant.

Namespace:  ABB.Robotics.Tps.Taf
Assembly:  ABB.Robotics.Tps.Taf (in ABB.Robotics.Tps.Taf.dll) Version: 6.5.129.0
Syntax
C#
public interface ITpsViewLaunchServices

The ITpsViewLaunchServices type exposes the following members.

Methods
  NameDescription
Public methodCode exampleCloseView
Closes a view which has been launched with the method LaunchView.
Public methodCode exampleLaunchView(FpStandardView, Object, Boolean, Object)
Launches a View in the FlexPendant.
Public methodCode exampleLaunchView(String, String, Object, Boolean, Object)
Launches a View in the FlexPendant.
Top
Remarks
These services can only be applied to a TpsView which implements the ITpsViewSetup Interface. During installation of a TpsView an object is sent which can be used to access the methods defined.
Examples
using System;
using ABB.Robotics;
using ABB.Robotics.Tps.Taf;
using ABB.Robotics.Tps.Windows.Forms;

Compliance Tool Info 
[assembly: TpsView("TpsViewApp", "tpu-Operator32.gif", "tpu-Operator16.gif", "TpsViewApp.dll", "TpsViewApp.TpsViewApp", StartPanelLocation.Left, TpsViewType.Dynamic)]
namespace TpsViewApp
{
    public class TpsViewApp : GTPUMasterDialog, ITpsViewSetup
    {
        private ABB.Robotics.Tps.Taf.ITpsViewLaunchServices _iTpsSite;

        public void Uninstall()
        {
             // TODO:  Add TpsViewApp.Uninstall implementation
        }
        public bool Install(object sender, object data)
        {
            // Save the sender object for later use of the ITpsViewLaunchServices
            _iTpsSite = sender as ABB.Robotics.Tps.Taf.ITpsViewLaunchServices;

            // With _iTpsSite handler you can access _iTpsSite.LaunchView and _iTpsSite.CloseView
            return true;
        }
    }
}
See Also