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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 5
0
 public AddOrUpdateKernelOutputKeywordCommand(IKernelOutputKeyword input)
 {
     this.Input = input;
 }
Esempio n. 6
0
 public SetKernelOutputKeywordCommand(IKernelOutputKeyword input)
 {
     this.Input = input;
 }