public void Add(GuidDataObject obj) { if (obj != null) { map.Add(obj.GetGuid(), obj); } }
public void Set(GuidDataObject value) { _guid = value == null ? Guid.Empty : value.GetGuid(); if (value != null && Context == null) { JsonSerializer.MapContext context = new JsonSerializer.MapContext(); context.Add(value); this.Context = context; } }
public override Guid GetUIValue() { GuidDataObject obj = comboBox.SelectedIndex < 0 ? null : items[comboBox.SelectedIndex]; return(obj == null ? new Guid() : obj.GetGuid()); }