Exemple #1
0
        public static PortingOption GetMergeType(Window w, TreeViewEntry sourceItem, TreeViewEntry targetItem)
        {
            TreeMergeDialog tmd = new TreeMergeDialog(sourceItem.Entry, targetItem.Entry);

            tmd.Owner = w;
            tmd.ShowDialog(); //modal

            return(tmd.PortingOptionChosen);
        }
        public static EntryImporter.PortingOption GetMergeType(Window w, TreeViewEntry sourceItem, TreeViewEntry targetItem, MEGame targetGame)
        {
            TreeMergeDialog tmd = new TreeMergeDialog(sourceItem.Entry, targetItem.Entry, targetGame)
            {
                Owner = w
            };

            tmd.ShowDialog(); //modal

            return(tmd.PortingOptionChosen);
        }