protected virtual void OnNavigatingFrom(NavigationEventHandlerArgs e) { NavigationEventHandler handler = NavigatingFrom; if (handler != null) { handler(this, e); } }
protected virtual void OnNavigatedTo(NavigationEventHandlerArgs e) { NavigationEventHandler handler = this.NavigatingTo; if (handler != null) { handler(this, e); } }
public static void Navigate <T>(NavigationEventHandler <T> onComplete = null) where T : View, new() { MainWindow window = Application.Instance.MainForm as MainWindow; if (window == null) { Debug.WriteLine("Unable to navigate: application main form is not instance of {0}.", typeof(MainWindow)); return; } T view = new T(); window.Content = view; if (onComplete != null) { onComplete(window, view); } }
protected virtual void OnNavigatingTo(NavigationEventHandlerArgs e) { NavigationEventHandler handler = this.NavigatingTo; handler?.Invoke(this, e); }
protected override void ExecuteApplicationSpecificStart() { ExWatson.Register("E12IIS"); StoreSession.UseRPCContextPool = true; UMClientCommonBase.InitializePerformanceCounters(false); OwaEventRegistry.RegisterEnum(typeof(Importance)); OwaEventRegistry.RegisterEnum(typeof(Sensitivity)); OwaEventRegistry.RegisterEnum(typeof(AddressOrigin)); OwaEventRegistry.RegisterEnum(typeof(FlagAction)); OwaEventRegistry.RegisterEnum(typeof(TaskStatus)); OwaEventRegistry.RegisterEnum(typeof(BusyType)); OwaEventRegistry.RegisterEnum(typeof(ResponseType)); OwaEventRegistry.RegisterEnum(typeof(StoreObjectType)); OwaEventRegistry.RegisterEnum(typeof(EmailAddressIndex)); OwaEventRegistry.RegisterEnum(typeof(NavigationNodeGroupSection)); OwaEventRegistry.RegisterEnum(typeof(InstantMessagingTypeOptions)); OwaEventRegistry.RegisterEnum(typeof(NavigationModule)); OwaEventRegistry.RegisterEnum(typeof(DefaultFolderType)); OwaEventRegistry.RegisterEnum(typeof(RecipientBlockType)); OwaEventRegistry.RegisterEnum(typeof(RecipientJunkEmailContextMenuType)); OwaEventRegistry.RegisterEnum(typeof(SharingLevel)); OwaEventRegistry.RegisterEnum(typeof(DenyResponseType)); OwaEventRegistry.RegisterEnum(typeof(AddressBookItemEventHandler.ItemTypeToPeople)); OwaEventRegistry.RegisterStruct(typeof(RecipientInfo)); OwaEventRegistry.RegisterStruct(typeof(DeleteItemInfo)); OwaEventRegistry.RegisterStruct(typeof(ReminderInfo)); OwaEventRegistry.RegisterHandler(typeof(ProxyEventHandler)); OwaEventRegistry.RegisterHandler(typeof(PendingRequestEventHandler)); OwaEventRegistry.RegisterHandler(typeof(ProxyToEwsEventHandler)); NotificationEventHandler.Register(); ClientCacheEventHandler.Register(); DocumentLibraryEventHandler.Register(); DocumentEventHandler.Register(); DatePickerEventHandler.Register(); ReadADOrgPersonEventHandler.Register(); ListViewEventHandler.Register(); TreeEventHandler.Register(); NavigationEventHandler.Register(); RecipientWellEventHandler.Register(); AttachmentEventHandler.Register(); ReadMessageEventHandler.Register(); ReadConversationEventHandler.Register(); ReadVoiceMessageEventHandler.Register(); OptionsEventHandler.Register(); AddressBookItemEventHandler.Register(); OwaEventRegistry.RegisterHandler(typeof(EditMessageEventHandler)); OwaEventRegistry.RegisterHandler(typeof(EditSmsEventHandler)); EditCalendarItemEventHandler.Register(); CalendarViewEventHandler.Register(); OwaEventRegistry.RegisterHandler(typeof(EditMeetingInviteEventHandler)); OwaEventRegistry.RegisterHandler(typeof(EditMeetingResponseEventHandler)); OwaEventRegistry.RegisterHandler(typeof(ErrorEventHandler)); OwaEventRegistry.RegisterHandler(typeof(FlagEventHandler)); OwaEventRegistry.RegisterHandler(typeof(CategoryEventHandler)); OwaEventRegistry.RegisterHandler(typeof(InstantMessageEventHandler)); OwaEventRegistry.RegisterHandler(typeof(MonitoringEventHandler)); OwaEventRegistry.RegisterHandler(typeof(MailTipsEventHandler)); RemindersEventHandler.Register(); EditContactItemEventHandler.Register(); EditDistributionListEventHandler.Register(); JunkEmailEventHandler.Register(); EditTaskEventHandler.Register(); ComplianceEventHandler.Register(); WebReadyFileEventHandler.Register(); EditPostEventHandler.Register(); ReadPostEventHandler.Register(); SMimeEventHandler.Register(); NavigationNodeEventHandler.Register(); MessageVirtualListViewEventHandler2.Register(); TaskVirtualListViewEventHandler.Register(); PersonalAutoAttendantOptionsEventHandler.Register(); EditPAAEventHandler.Register(); PerformanceConsoleEventHandler.Register(); DirectoryVirtualListViewEventHandler.Register(); ContactVirtualListViewEventHandler.Register(); DumpsterVirtualListViewEventHandler.Register(); SharingMessageEventHandler.Register(); DeletePolicyEventHandler.Register(); MovePolicyEventHandler.Register(); PrintCalendarEventHandler.Register(); MessageAnnotationEventHandler.Register(); }