Example #1
0
        /// <summary>
        /// Attach a secondary connection to the Dob connection.
        /// Start subscription of vehicles and show frame.
        /// </summary>
        public EntityFrame()
        {
            InitializeComponent();
            m_secDobConnection = new Safir.Dob.SecondaryConnection();
            m_secDobConnection.Attach();

            // Create vehicles entity subscriber and list view
            m_vehicleEntityListHandler = new EntityListHandler(listViewVehicles, statusStrip.Items["toolStripStatus"]);
        }
Example #2
0
 /// <summary>
 /// Initiates this class. Creates a secondary DOB
 /// connection and registeres as handler.
 /// </summary>
 public void Init()
 {
     m_connection.Attach();
     // Register as service handler.
     m_connection.RegisterServiceHandler(
         Capabilities.CalculateSpeedDifference.ClassTypeId,
         new Safir.Dob.Typesystem.HandlerId(),
         this);
 }
        ////////////////////////////////////////////////
        // Public members and functions

        /// <summary>
        /// Default constructor, initialize component and attach to the Dob
        /// </summary>
        public MessageDialog()
        {
            InitializeComponent();
            m_secDobConnection = new Safir.Dob.SecondaryConnection();
            m_secDobConnection.Attach();
            //StartRemoveInExercise8
            m_secDobConnection.SubscribeMessage(Capabilities.Vehicles.VehicleMsg.ClassTypeId,
                                                new Safir.Dob.Typesystem.ChannelId(), this);
            //StopRemoveInExercise8
        }
        /// <summary>
        /// Initiates this class. Creates a secondary DOB
        /// connection and registeres as handler.
        /// </summary>
        public void Init()
        {
            m_connection.Attach();

            // Register as vehicle entity handler.
            m_connection.RegisterEntityHandlerInjection(
                Capabilities.Vehicles.Vehicle.ClassTypeId,
                new Safir.Dob.Typesystem.HandlerId(),
                Safir.Dob.InstanceIdPolicy.Enumeration.HandlerDecidesInstanceId,
                this);
        }
Example #5
0
        ///////////////////////////////////
        // Public members and functions

        /// <summary>
        /// Constructor, initialize dialog and attach to the Dob.
        /// </summary>
        public EntityDialog()
        {
            InitializeComponent();
            m_secDobConnection = new Safir.Dob.SecondaryConnection();
            m_secDobConnection.Attach();

            // Fill combo-box with values for vehicle category
            foreach (int i in Enum.GetValues(typeof(Capabilities.Vehicles.VehicleCategoryCode.Enumeration)))
            {
                comboBoxCategory.Items.Add(((Capabilities.Vehicles.VehicleCategoryCode.Enumeration)(i)).ToString());
            }
        }
Example #6
0
        //////////////////////////////////
        // Public members and functions

        /// <summary>
        /// Attach to the Dob and map list view items to the type of Dob objects
        /// </summary>
        public EntityListHandler(System.Windows.Forms.ListView listView, System.Windows.Forms.ToolStripItem frameStatusStrip)
        {
            m_secDobConnection = new Safir.Dob.SecondaryConnection();
            m_secDobConnection.Attach();
            m_ListView         = listView;
            m_frameStatusStrip = frameStatusStrip;

            // Create dialogs
            m_VehicleDialog     = new EntityDialog();
            m_CalculateSpeedDlg = new ServiceDialog();
            m_CategoryInfoDlg   = new CategoryInfoDialog();
            m_MessageDialog     = new MessageDialog();
        }
Example #7
0
        ////////////////////////////////////////////////
        // Public members and functions

        /// <summary>
        /// Default constructor, initialize component and attach to the Dob
        /// </summary>
        public ServiceDialog()
        {
            InitializeComponent();
            m_secDobConnection = new Safir.Dob.SecondaryConnection();
            m_secDobConnection.Attach();
        }
Example #8
0
        ///////////////////////////////////
        // Public members and functions

        /// <summary>
        /// Constructor, initialize dialog and attach to the Dob.
        /// </summary>
        public CategoryInfoDialog()
        {
            InitializeComponent();
            m_secDobConnection = new Safir.Dob.SecondaryConnection();
            m_secDobConnection.Attach();
        }
 /// <summary>
 /// Initiates this class. Creates a secondary Dob connection.
 /// </summary>
 public void Init()
 {
     m_connection.Attach();
 }