コード例 #1
0
ファイル: OdlInformation.cs プロジェクト: sun363587351/vtn
 /// <summary>
 /// Store the config info to field member(Entity).
 /// </summary>
 /// <param name="config">ConfigManager object.</param>
 protected override void SetEntity(ConfigManagerBase config)
 {
     if (config == null)
     {
         this.Info = null;
     }
     else
     {
         this.Info = ((OdlInformation)config).Info;
     }
 }
コード例 #2
0
 /// <summary>
 /// Store the config info to field member(Entity).
 /// </summary>
 /// <param name="config">ConfigManager object.</param>
 protected override void SetEntity(ConfigManagerBase config)
 {
     if (config == null)
     {
         this.VLANIDMapping = new List <VSEMVLANIDMapping>();
     }
     else
     {
         this.VLANIDMapping = ((VLANIDMappingConfig)config).VLANIDMapping;
     }
 }
コード例 #3
0
 /// <summary>
 /// Store the config info to field member(Entity).
 /// </summary>
 /// <param name="config">ConfigManager object.</param>
 protected override void SetEntity(ConfigManagerBase config)
 {
     if (config == null)
     {
         this.LogicalNetworks = new List <LogicalNetwork>();
     }
     else
     {
         this.LogicalNetworks = ((LogicalNetworkConfig)config).LogicalNetworks;
     }
 }
コード例 #4
0
ファイル: PortProfileConfig.cs プロジェクト: sun363587351/vtn
 /// <summary>
 /// Store the config info to field member(Entity).
 /// </summary>
 /// <param name="config">ConfigManager object.</param>
 protected override void SetEntity(ConfigManagerBase config)
 {
     if (config == null)
     {
         this.UplinkPortProfiles  = new List <VSEMUplinkPortProfile>();
         this.VirtualPortProfiles = new List <VSEMVirtualPortProfile>();
     }
     else
     {
         this.UplinkPortProfiles  = ((PortProfileConfig)config).UplinkPortProfiles;
         this.VirtualPortProfiles = ((PortProfileConfig)config).VirtualPortProfiles;
     }
 }
コード例 #5
0
 /// <summary>
 /// Store the config info to field member(Entity).
 /// </summary>
 /// <param name="config">ConfigManager object.</param>
 protected override void SetEntity(ConfigManagerBase config)
 {
     if (config == null)
     {
         this.VMNetwork            = new VSEMVMNetwork();
         this.VMNetwork.VmNetworks = new List <VMNetwork>();
         this.VMNetwork.VMNetworkMappingInformation = new VMNetworkMappingInfo();
         this.VMNetwork.VMNetworkMappingInformation.VMNetworkInfo = new List <VMNetworkInfo>();
     }
     else
     {
         this.VMNetwork = ((VMNetworkConfig)config).VMNetwork;
     }
 }
コード例 #6
0
 /// <summary>
 /// Store the config info to field member(Entity).
 /// </summary>
 /// <param name="config">ConfigManager object.</param>
 protected override void SetEntity(ConfigManagerBase config)
 {
     if (config == null)
     {
         this.Info = new VSEMInfo();
         this.NetworkServiceSystemInformation = new NetworkServiceSystemInformation();
         this.Controller          = new VSEMController();
         this.SwitchExtensionInfo = new List <VSEMSwitchExtensionInfo>();
     }
     else
     {
         this.Info = ((VSEMConfig)config).Info;
         this.NetworkServiceSystemInformation = ((VSEMConfig)config).NetworkServiceSystemInformation;
         this.Controller          = ((VSEMConfig)config).Controller;
         this.SwitchExtensionInfo = ((VSEMConfig)config).SwitchExtensionInfo;
     }
 }
コード例 #7
0
        public ControllerViewModel() : base()
        {
            if (GetIsInDesignMode())
            {
                return;
            }

            //IoC
            MessageBox   = Container?.Resolve <IMessageBox>();
            AlertManager = Container?.Resolve <IAlertManager>();


            //AutoMapper 기존거에 맵 추가하기
            Domain.AutoMapper.BaseMapping.CreateMap <AddressMap, AddressDataWrapper>();
            Domain.AutoMapper.BaseMapping.CreateMap <AddressData, AddressDataWrapper>();
            Domain.AutoMapper.Init(Domain.AutoMapper.BaseMapping);

            configManager = new DefaultConfigManager();
            configManager.Init();

            LoadControllerManagers();
        }