public void Test_MergeTree() { Assert.Throws(typeof(ArgumentNullException), () => { TreeTools.MergeTree(null, null, null); }); Assert.Throws(typeof(ArgumentNullException), () => { TreeTools.MergeTree(fBaseWin.Context.Tree, null, null); }); Assert.Throws(typeof(ArgumentNullException), () => { TreeTools.MergeTreeFile(null, null, null); }); Assert.Throws(typeof(ArgumentNullException), () => { TreeTools.MergeTreeFile(fBaseWin.Context.Tree, null, null); }); }
public void Merge() { string fileName = AppHost.StdDialogs.GetOpenFile("", "", LangMan.LS(LSID.LSID_GEDCOMFilter), 1, GKData.GEDCOM_EXT); if (string.IsNullOrEmpty(fileName)) { return; } fView.UpdateBase.Text = fileName; TreeTools.MergeTreeFile(fBase.Context.Tree, fileName, fView.SyncLog); fBase.RefreshLists(false); }