/// <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; } }
/// <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; } }
/// <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; } }
/// <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; } }
/// <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; } }
/// <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; } }
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(); }