public bool Show(EndPoint formEndPoint, bool throwOnFormMissing) { if (!FormsByEndPoint.ContainsKey(formEndPoint)) { if (throwOnFormMissing) { throw new ArgumentException(formEndPoint.GetFullPath() + " does not have an associated form"); } return true; } return RegionNavigator.NavigateTo(formEndPoint); }
private string GetLog(EndPoint endPoint) { if (endPoint == null || endPoint == EndPoint.Root) { return "desktop"; } return endPoint.GetFullPath(); }
public bool NavigateTo(EndPoint destination) { if (!destination.CreateMenuEntry) { throw new ArgumentException(destination.GetFullPath() + " does not have a menu entry"); } var menu = FindMenu(destination.GetMenuPath()); if (menu == null) { return false; } return menu.Navigate(); }