// Token: 0x06001383 RID: 4995 RVA: 0x0007CE78 File Offset: 0x0007B278 protected virtual void handleAddLeafButtonClicked(Sleek2ImageButton button) { if (this.branch == null) { return; } if (this.branch.leaf != null) { return; } if (this.branch.branches == null) { this.branch.addBranches(); } TranslationBranch translationBranch = this.branch.addBranch("new leaf"); translationBranch.addLeaf(); this.climbBranch(this.branch); }
// Token: 0x0600137C RID: 4988 RVA: 0x0007CC6C File Offset: 0x0007B06C protected virtual void compareTranslationBranches(TranslationBranch origin, TranslationBranch translation) { if (origin == null || translation == null) { return; } if (origin.leaf != null) { if (translation.leaf != null && origin.leaf.version == translation.leaf.version) { return; } if (translation.leaf == null) { translation.addLeaf(); } TranslationLeafUpdateField element = new TranslationLeafUpdateField(origin.leaf, translation.leaf); this.deltaPanel.addElement(element); } else { foreach (KeyValuePair <string, TranslationBranch> keyValuePair in origin.branches) { TranslationBranch value = keyValuePair.Value; TranslationBranch translationBranch; if (!translation.branches.TryGetValue(value.key, out translationBranch)) { translationBranch = translation.addBranch(value.key); } if (translationBranch.branches == null) { translationBranch.addBranches(); } this.compareTranslationBranches(value, translationBranch); } } }