예제 #1
0
        /// <summary>
        ///
        /// </summary>
        public void Load()
        {
            if (mIsLoad)
            {
                return;
            }
            mIsLoad = true;
            using (Context context = new Context())
            {
                Api = new APIDocument()
                {
                    Name = Name
                };
                Channel = new ChannelDocument()
                {
                    Name = Name
                };
                Device = new DeviceDocument()
                {
                    Name = Name
                };
                Driver = new DriverDocument()
                {
                    Name = Name
                };

                Api.Load();
                Channel.Load(context);
                Driver.Load(context);
                Device.Load(context);
            }
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 public void New()
 {
     Api = new APIDocument()
     {
         Name = Name
     };
     Api.New();
     Channel = new ChannelDocument()
     {
         Name = Name
     };
     Device = new DeviceDocument()
     {
         Name = Name
     };
     Driver = new DriverDocument()
     {
         Name = Name
     };
 }