void browser_UrlChosen(object sender, FileChosenEventArgs e)
 {
     if (ViewerApplicationControl.Instance != null && ViewerApplicationControl.Instance.ViewerApplication != null)
     {
         ViewerApplicationControl.Instance.ViewerApplication.LogoFilePath = e.RelativePath;
     }
     BuilderApplication.Instance.HideWindow(browser);
 }
        void onUrlChosen(object sender, FileChosenEventArgs args)
        {
            FrameworkElement elem = sender as FrameworkElement;
            MapApplication.Current.HideWindow(elem);
            object [] tag = elem.Tag as object[];
            EventHandler<BrowseCompleteEventArgs> onComplete = tag[0] as EventHandler<BrowseCompleteEventArgs>;
            if (onComplete == null)
                return;

            Uri baseUri = new Uri(MapApplication.Current.Urls.BaseUrl);
            onComplete(this, new BrowseCompleteEventArgs() { Uri = new Uri(baseUri, args.RelativePath), RelativeUri = args.RelativePath, UserState = tag[1] });
        }
Beispiel #3
0
        void onUrlChosen(object sender, FileChosenEventArgs args)
        {
            FrameworkElement elem = sender as FrameworkElement;

            MapApplication.Current.HideWindow(elem);
            object [] tag = elem.Tag as object[];
            EventHandler <BrowseCompleteEventArgs> onComplete = tag[0] as EventHandler <BrowseCompleteEventArgs>;

            if (onComplete == null)
            {
                return;
            }

            Uri baseUri = new Uri(MapApplication.Current.Urls.BaseUrl);

            onComplete(this, new BrowseCompleteEventArgs()
            {
                Uri = new Uri(baseUri, args.RelativePath), RelativeUri = args.RelativePath, UserState = tag[1]
            });
        }
 void browser_UrlChosen(object sender, FileChosenEventArgs e)
 {
     if(ViewerApplicationControl.Instance != null && ViewerApplicationControl.Instance.ViewerApplication != null)
         ViewerApplicationControl.Instance.ViewerApplication.LogoFilePath = e.RelativePath;
     BuilderApplication.Instance.HideWindow(browser);
 }