/// <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"]); }
//////////////////////////////////////////////// // 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 }
/////////////////////////////////// // 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()); } }
////////////////////////////////// // 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(); }
//////////////////////////////////////////////// // 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(); }
/////////////////////////////////// // 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> /// Constructor. /// </summary> public MessageSender() { m_connection = new Safir.Dob.SecondaryConnection(); }
/// <summary> /// Constructor. /// </summary> public ServiceHandler() { m_connection = new Safir.Dob.SecondaryConnection(); }
/// <summary> /// Constructor. /// </summary> public EntityHandler() { m_connection = new Safir.Dob.SecondaryConnection(); m_iNumberOfCreatedVehicles = 0; }