internal virtual void Fire_DocumentOpened(PipelineBuilder.Samples.Events.DocumentOpenedEventArgs args) { if ((_DocumentOpened == null)) { } else { _DocumentOpened.Invoke(this, args); } }
public DocumentOpenedEventArgsViewToContractHostAdapter(PipelineBuilder.Samples.Events.DocumentOpenedEventArgs view) { _view = view; }
public void Handler(object sender, PipelineBuilder.Samples.Events.DocumentOpenedEventArgs args) { _contract.Handle(PipelineBuilder.Samples.EventsAddInAdapters.DocumentOpenedEventArgsAddInAdapter.ViewToContractAdapter(args)); }
internal static PipelineBuilder.Samples.Events.Contracts.IDocumentOpenedEventArgsContract ViewToContractAdapter(PipelineBuilder.Samples.Events.DocumentOpenedEventArgs view) { if (view.GetType().Equals(typeof(DocumentOpenedEventArgsContractToViewHostAdapter))) { return(((DocumentOpenedEventArgsContractToViewHostAdapter)(view)).GetSourceContract()); } else { return(new DocumentOpenedEventArgsViewToContractHostAdapter(view)); } }