public bool TryGetKernelOutputKeyword(Guid id, out IKernelOutputKeyword keyword) { InitOnece(); var result = _dicById.TryGetValue(id, out KernelOutputKeywordData data); keyword = data; return(result); }
public KernelOutputKeywordViewModel(IKernelOutputKeyword data) : this(data.GetId()) { this._dataLevel = data.GetDataLevel(); _kernelOutputId = data.KernelOutputId; _messageType = data.MessageType; data.MessageType.TryParse(out _messageTypeEnum); _keyword = data.Keyword; _description = data.Description; }
public static KernelOutputKeywordData Create(IKernelOutputKeyword data) { if (data == null) { return(null); } if (data is KernelOutputKeywordData result) { return(result); } return(new KernelOutputKeywordData { Id = data.GetId(), KernelOutputId = data.KernelOutputId, MessageType = data.MessageType, Keyword = data.Keyword, DataLevel = data.DataLevel }); }
public KernelOutputKeywordViewModel(IKernelOutputKeyword data) : this(data.GetId(), data.KernelOutputId, data.MessageType, data.GetDataLevel()) { _keyword = data.Keyword; _description = data.Description; }
public AddOrUpdateKernelOutputKeywordCommand(IKernelOutputKeyword input) { this.Input = input; }
public SetKernelOutputKeywordCommand(IKernelOutputKeyword input) { this.Input = input; }