Esempio n. 1
0
 private DragDropAction PromptSourceTargetSame(TaxonDropContext context)
 {
     DragDropOptions form = new DragDropOptions(Owner);
     return form.ShowChooseMergeOrConvert(context);
 }
Esempio n. 2
0
        private DragDropAction PromptConvert(TaxonDropContext context)
        {
            DragDropOptions form = new DragDropOptions(Owner);
            List<TaxonRank> validChildren = Service.GetChildRanks(context.TargetRank);
            TaxonRank choice = form.ShowChooseConversion(context.SourceRank, validChildren);
            if (choice != null) {
                return new ConvertingMoveDropAction(context, choice);
            }

            return null;
        }