public void Copy(Indiagram indiagram, bool isCategory) { _indiagram = isCategory ? new Category() : new Indiagram(); _indiagram.CopyFrom(indiagram, true); HasBuffer = true; }
private void AddIndiagramToSentence(Indiagram indiagram) { if (SettingsService.IsMultipleIndiagramSelectionEnabled && !IsCorrectionModeEnabled) { // need to create a copy of the indiagram Indiagram copy = new Indiagram(); copy.CopyFrom(indiagram); indiagram = copy; indiagram.Id = _sentenceIndiagramId--; } SentenceIndiagrams.Add(new IndiagramUIModel(indiagram)); }