Flyad7_OBJProxy.cs 1.33 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FObjBase;
using System.Net;
using System.ComponentModel;

namespace FLY.Simulation.Flyad7.OBJProxy
{
    public class Flyad7_OBJProxy : FObj, INotifyPropertyChanged
    {
        PUSH_DATA module_pushdata;
        DRIVE_MAN module_driveman;
        FLYADC module_flyadc;
        SYS_DATA module_sys_data;
        FLYIO module_flyio;
        FLYAD7 mData;




        public Flyad7_OBJProxy(int objsys_idx, FLYAD7 data):base(objsys_idx)
        {
            module_pushdata = new PUSH_DATA(objsys_idx, data);
            module_driveman = new DRIVE_MAN(objsys_idx, data);
            module_flyadc = new FLYADC(objsys_idx, data);
            module_sys_data = new SYS_DATA(objsys_idx, data);
            module_flyio = new FLYIO(objsys_idx, data);
            mData = data;
        }
        public void Listen()
        {
            CurrObjSys.Start_Conn_Server(mData.LocalEP, ID);
        }

        #region INotifyPropertyChanged 成员
        protected void NotifyPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
    }
}