public OnSolutionBuilderDrop([Import]SolutionBuilderView solutionBuilder) { Guard.NotNull(() => solutionBuilder, solutionBuilder); this.solutionBuilder = solutionBuilder; this.sourceEvent = WeakObservable.FromEvent<DragEventHandler, DragEventArgs>( handler => new DragEventHandler(handler), handler => this.solutionBuilder.ElementDrop += handler, handler => this.solutionBuilder.ElementDrop -= handler); }
public OnSolutionBuilderDragLeave([Import] SolutionBuilderView solutionBuilder) { Guard.NotNull(() => solutionBuilder, solutionBuilder); this.solutionBuilder = solutionBuilder; this.sourceEvent = WeakObservable.FromEvent <DragEventHandler, DragEventArgs>( handler => new DragEventHandler(handler), handler => this.solutionBuilder.ElementDragLeave += handler, handler => this.solutionBuilder.ElementDragLeave -= handler); }