Пример #1
0
        /// <summary>
        /// Called when [start].
        /// </summary>
        /// <remarks>...</remarks>
        protected override void OnStart()
        {
            // Load UI
            Application.Current.Dispatcher.BeginInvoke(new Action(() => {
                tileImage = new Image()
                {
                    Source              = Path.Combine(Location, customizedSettings.TilePageImage).ToBitmapSource(),
                    Stretch             = Stretch.Fill,
                    VerticalAlignment   = VerticalAlignment.Stretch,
                    HorizontalAlignment = HorizontalAlignment.Center
                };

                tileImage.MouseLeftButtonUp += tileImage_MouseLeftButtonUp;

                if (File.Exists(Path.Combine(Location, customizedSettings.TilePage)))
                {
                    var wb = new WebBrowser();
                    var b  = new IEBasedBrowser(wb);
                    tile   = new BrowserControl(b);

                    tile.Browser.Navigate(
                        GetServerUriOfPackageResourceFor(customizedSettings.TilePage)
                        );
                }
            }));
        }
Пример #2
0
    public static void Main(string[] args)
    {
        BrowserControl browser = new BrowserControl();

        browser.PrintHelpPage();
        Console.ReadKey();
    }
 public NoInternetControl(BrowserControl browserControl)
 {
     this.InitializeComponent();
     this.AssociatedControl = browserControl;
     BlueStacksUIBinding.Bind(this.mFailureTextBox, "STRING_NAVIGATE_FAILED", "");
     BlueStacksUIBinding.Bind((Button)this.mBlueButton, "STRING_RETRY_CONNECTION_ISSUE_TEXT1");
 }
Пример #4
0
        public void ShowUrl(string sourceUrl, string gmiFile, string htmlFile, string themePath, SiteIdentity siteIdentity, System.Windows.Navigation.NavigatingCancelEventArgs e)
        {
            string hash;

            hash = HashService.GetMd5Hash(sourceUrl);

            var usedShowWebHeaderInfo = false;

            var settings = new Settings();
            var uri      = new UriBuilder(sourceUrl);

            //only show web header for self generated content, not proxied
            usedShowWebHeaderInfo = uri.Scheme.StartsWith("http") && settings.HandleWebLinks != "Gemini HTTP proxy";

            //create the html file
            var result = ConverterService.GmiToHtml(gmiFile, htmlFile, sourceUrl, siteIdentity, themePath, usedShowWebHeaderInfo);

            if (!File.Exists(htmlFile))
            {
                ToastNotify("GMIToHTML did not create content for " + sourceUrl + "\n\n" + "File: " + gmiFile, ToastMessageStyles.Error);

                ToggleContainerControlsForBrowser(true);
                e.Cancel = true;
            }
            else
            {
                _urlsByHash[hash] = sourceUrl;

                //no further navigation right now
                e.Cancel = true;

                //instead tell the browser to load the content
                BrowserControl.Navigate(@"file:///" + htmlFile);
            }
        }
Пример #5
0
 private void UpdateControls()
 {
     try
     {
         btnBack.Enabled    = BrowserControl.CanGoBack();
         btnForward.Enabled = BrowserControl.CanGoForward();
     }
     catch (NullReferenceException)
     {
         // Occurs if Windows are not created yet.
     }
     catch (Exception ex)
     {
         try
         {
             if (NewMessage != null)
             {
                 NewMessage(this, ex.Message, this.GetBrowserIndex());
             }
         }
         catch (NullReferenceException)
         {
             // Occurs if Windows are not created yet.
         }
         catch (Exception)
         {
             throw;
         }
     }
 }
Пример #6
0
        private void mnuMenuBookmarksAdd_Click(object sender, RoutedEventArgs e)
        {
            var bmManager = new BookmarkManager(this, BrowserControl);

            bmManager.AddBookmark(txtUrl.Text, BrowserControl.GetTitle());
            var url = txtUrl.Text;
        }
 public BrowserSubscriber(BrowserControl control)
 {
     this.mControl = control;
     foreach (BrowserControlTags key in control?.TagsSubscribedDict.Keys)
     {
         this.SubscribeTag(key);
     }
 }
Пример #8
0
        void PresentUI()
        {
            BrowserControl?.Present(BrowserProcessCreationLast?.Value);

            InterfaceControl?.LicenseHeader?.SetStatus(InterfaceLicenseStatus);
            BrowserStatusIcon.Status = BrowserStatusIconType;

            InterfaceControl?.Present(InterfaceServerDispatcher);
        }
Пример #9
0
 internal void CloseWindow()
 {
     if (this.mBrowser == null)
     {
         return;
     }
     this.mBrowser.DisposeBrowser();
     this.mBrowserGrid.Children.Remove((UIElement)this.mBrowser);
     this.mBrowser = (BrowserControl)null;
 }
Пример #10
0
 private void GoToPage_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     if (UriTester.TextIsUri(txtUrl.Text))
     {
         BrowserControl.Navigate(txtUrl.Text);
     }
     else
     {
         ToastNotify("Not a valid URI: " + txtUrl.Text, ToastMessageStyles.Error);
     }
 }
Пример #11
0
        private void LogoutFb()
        {
            var fb         = new FacebookClient();
            var parameters = new Dictionary <string, object>();

            parameters["access_token"] = (string)App.appSettings[HikeConstants.AppSettings.FB_ACCESS_TOKEN];
            parameters["next"]         = "https://www.facebook.com/connect/login_success.html";
            var logoutUrl = fb.GetLogoutUrl(parameters);

            BrowserControl.Navigate(logoutUrl);
        }
Пример #12
0
        public FormMain()
        {
            InitializeComponent();

            p_DailyR = new Parser_DailyReport("DailyReport", "C:\\Property");
            BrowserControl browser1 = new BrowserControl(ref this.panelMain, Parser_DailyReport.INDEX_URL_TO_PARSE);
            BrowserControl browser2 = new BrowserControl(ref this.tabUnsuccessful, "file://c:\\Property\\DailyReport\\NOT_PARSED\\index.htm");

            textBoxStartPage.Text = iStartPage.ToString();

            cs_FrmLock = new Object();
        }
Пример #13
0
        public void ShowImage(string sourceUrl, string imgFile, NavigatingCancelEventArgs e)
        {
            var hash = HashService.GetMd5Hash(sourceUrl);

            _urlsByHash[hash] = sourceUrl;

            //no further navigation right now
            e.Cancel = true;

            //instead tell the browser to load the content
            BrowserControl.Navigate(@"file:///" + imgFile);
        }
Пример #14
0
        private void TwitterRequestTokenCompleted(RestRequest request, RestResponse response, object userstate)
        {
            _oAuthToken       = GetQueryParameter(response.Content, "oauth_token");
            _oAuthTokenSecret = GetQueryParameter(response.Content, "oauth_token_secret");
            var authorizeUrl = TwitterSettings.AuthorizeUri + "?oauth_token=" + _oAuthToken;

            if (String.IsNullOrEmpty(_oAuthToken) || String.IsNullOrEmpty(_oAuthTokenSecret))
            {
                Dispatcher.BeginInvoke(() => MessageBox.Show("error calling twitter"));
                return;
            }

            Dispatcher.BeginInvoke(() => BrowserControl.Navigate(new Uri(authorizeUrl)));
        }
Пример #15
0
 private void txtUrl_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (UriTester.TextIsUri(txtUrl.Text))
         {
             BrowserControl.Navigate(txtUrl.Text);
         }
         else
         {
             ToastNotify("Not a valid URI: " + txtUrl.Text, ToastMessageStyles.Error);
         }
     }
 }
Пример #16
0
 void CallBackToken(OAuthRequestToken rt, TwitterResponse response)
 {
     if (rt != null)
     {
         Uri uri = service.GetAuthorizationUri(rt);
         _requestToken = rt;
         BrowserControl.Dispatcher.BeginInvoke(() => BrowserControl.Navigate(uri));
     }
     else
     {
         MessageBox.Show("Sorry, can not access the data.Please try again later.");
         return;
     }
 }
Пример #17
0
        private void MenuViewSource_Click(object sender, RoutedEventArgs e)
        {
            var    menu = (MenuItem)sender;
            string hash;

            //use the current session folder
            var sessionPath = Session.Instance.SessionPath;

            hash = HashService.GetMd5Hash(txtUrl.Text);

            //uses .txt as extension so content loaded as text/plain not interpreted by the browser
            var gmiFile = sessionPath + "\\" + hash + ".txt";

            BrowserControl.Navigate(gmiFile);
        }
Пример #18
0
        private BrowserControl AddBrowser(string url, bool isFallbackUrlRequired = false)
        {
            BrowserControl browserControl = new BrowserControl();

            if (isFallbackUrlRequired)
            {
                browserControl.BrowserFallbackUrlEvent += new System.Action(this.BrowserFallbackUrlEvent);
            }
            browserControl.BrowserLoadCompleteEvent += new System.Action(this.BrowserLoadCompleteEvent);
            browserControl.BrowserLoadErrorEvent    += new System.Action <string, string>(this.BrowserLoadErrorEvent);
            browserControl.InitBaseControl(url, 0.0f);
            browserControl.Visibility   = Visibility.Visible;
            browserControl.ParentWindow = this.ParentWindow;
            this.mContentGrid.Children.Add((UIElement)browserControl);
            return(browserControl);
        }
        public FrameworkElement CreateWidgetControl(IDiagram widgetViewModel, ContextMenu contextMenu)
        {
            var htmlViewer = widgetViewModel as HtmlViewerWidgetViewModel;

            var ret = new BrowserControl {
                DataContext = htmlViewer, ContextMenu = contextMenu
            };

            var heightBinding = new Binding("Height")
            {
                Source = htmlViewer, Mode = BindingMode.TwoWay
            };
            var widthBinding = new Binding("Width")
            {
                Source = htmlViewer, Mode = BindingMode.TwoWay
            };
            var xBinding = new Binding("X")
            {
                Source = htmlViewer, Mode = BindingMode.TwoWay
            };
            var yBinding = new Binding("Y")
            {
                Source = htmlViewer, Mode = BindingMode.TwoWay
            };
            var transformBinding = new Binding("RenderTransform")
            {
                Source = htmlViewer, Mode = BindingMode.OneWay
            };
            var urlBinding = new Binding("Url")
            {
                Source = htmlViewer, Mode = BindingMode.TwoWay
            };
            var toolbarVisibleBinding = new Binding("Settings.IsToolbarVisible")
            {
                Source = htmlViewer, Mode = BindingMode.TwoWay
            };

            ret.SetBinding(InkCanvas.LeftProperty, xBinding);
            ret.SetBinding(InkCanvas.TopProperty, yBinding);
            ret.SetBinding(FrameworkElement.HeightProperty, heightBinding);
            ret.SetBinding(FrameworkElement.WidthProperty, widthBinding);
            ret.SetBinding(UIElement.RenderTransformProperty, transformBinding);
            ret.SetBinding(BrowserControl.ActiveUrlProperty, urlBinding);
            ret.SetBinding(BrowserControl.IsToolbarVisibleProperty, toolbarVisibleBinding);

            return(ret);
        }
Пример #20
0
        //after any navigate (even back/forwards)
        //update the address box depending on the current location
        private void BrowserControl_Navigated(object sender, NavigationEventArgs e)
        {
            var uri = e.Uri.ToString();

            //look up the URL that this HTML page shows
            var regex = new Regex(@".*/([a-f0-9]+)\.(.*)");

            if (regex.IsMatch(uri))
            {
                var match = regex.Match(uri);
                var hash  = match.Groups[1].ToString();

                string geminiUrl = _urlsByHash[hash];
                if (geminiUrl != null)
                {
                    //now show the actual gemini URL in the address bar
                    txtUrl.Text = geminiUrl;

                    ShowTitle(BrowserControl.Document);


                    var originalUri = new UriBuilder(geminiUrl);

                    if (originalUri.Scheme == "http" || originalUri.Scheme == "https")
                    {
                        ShowLinkRenderMode(BrowserControl.Document);
                    }

                    BuildCertsMenu();
                }

                //if a text file (i.e. view->source), explicitly set the charset
                //to UTF-8 so ascii art looks correct etc.
                if ("txt" == match.Groups[2].ToString().ToLower())
                {
                    //set text files (GMI source) to be UTF-8 for now
                    var doc = (HTMLDocument)BrowserControl.Document;
                    doc.charset = "UTF-8";
                }
            }

            BrowserControl.Focus();
            ((HTMLDocument)BrowserControl.Document).focus();

            _isNavigating = false;
        }
Пример #21
0
        private void ViewThemeItem_Click(object sender, RoutedEventArgs e)
        {
            var menu      = (MenuItem)sender;
            var themeName = menu.Header.ToString();

            var settings = new Settings();

            if (settings.Theme != themeName)
            {
                settings.Theme = themeName;
                settings.Save();

                TickSelectedThemeMenu();

                //redisplay
                BrowserControl.Navigate(txtUrl.Text);
            }
        }
Пример #22
0
        public MainWindow()
        {
            InitializeComponent();

            _notifier = new Notifier(cfg =>
            {
                //place the notifications approximately inside the main editing area
                //(not over the toolbar area) on the top-right hand side
                cfg.PositionProvider = new WindowPositionProvider(
                    parentWindow: Application.Current.MainWindow,
                    corner: Corner.TopRight,
                    offsetX: 15,
                    offsetY: 90);

                cfg.LifetimeSupervisor = new TimeAndCountBasedLifetimeSupervisor(
                    notificationLifetime: TimeSpan.FromSeconds(5),
                    maximumNotificationCount: MaximumNotificationCount.FromCount(5));

                cfg.Dispatcher = Application.Current.Dispatcher;
            });

            _urlsByHash      = new Dictionary <string, string>();
            _bookmarkManager = new BookmarkManager(this, BrowserControl);

            AppInit.UpgradeSettings();
            AppInit.CopyAssets();

            _bookmarkManager.RefreshBookmarkMenu();

            var settings  = new Settings();
            var launchUri = settings.HomeUrl;


            String[] args = App.Args;
            if (args != null)
            {
                launchUri = App.Args[0];
            }

            BrowserControl.Navigate(launchUri);

            BuildThemeMenu();
            TickSelectedThemeMenu();
        }
Пример #23
0
 void IComponentConnector.Connect(int connectionId, object target)
 {
     if (connectionId != 1)
     {
         if (connectionId == 2)
         {
             this.mRecommendedBrowserControl = (BrowserControl)target;
         }
         else
         {
             this._contentLoaded = true;
         }
     }
     else
     {
         this.mCloseBtn = (CustomPictureBox)target;
         this.mCloseBtn.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mCloseBtn_PreviewMouseLeftButtonUp);
     }
 }
Пример #24
0
        private void LogInFb()
        {
            string perms;

            if (fromEnterName)
            {
                perms = extendedPermissionsEnterName;
            }
            else
            {
                perms = extendedPermissions;
            }
            var parameters = new Dictionary <string, object>();

            parameters["client_id"]     = Misc.Social.FacebookSettings.AppID;
            parameters["redirect_uri"]  = "https://www.facebook.com/connect/login_success.html";
            parameters["response_type"] = "token";
            parameters["display"]       = "touch";
            parameters["scope"]         = perms;
            BrowserControl.Navigate(_fb.GetLoginUrl(parameters));
        }
Пример #25
0
        protected override void OnBackKeyPress(CancelEventArgs e)
        {
            base.OnBackKeyPress(e);

            if (ViewModel.BrowserHistoryUrls.Count <= 1)
            {
                return;
            }

            var uri = ViewModel.BrowserHistoryUrls.Last();

            ViewModel.BrowserHistoryUrls.Remove(uri);

            if (ViewModel.BrowserHistoryUrls.Count < 1)
            {
                return;
            }

            BrowserControl.Navigate(new Uri(ViewModel.BrowserHistoryUrls[ViewModel.BrowserHistoryUrls.Count - 1]));
            e.Cancel = true;
        }
Пример #26
0
        /// <summary>
        /// 初始化UI
        /// </summary>
        /// <param name="page"></param>
        public void InitView(PhoneApplicationPage page)
        {
            page.SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;
            page.Orientation           = PageOrientation.Portrait;
            page.BackKeyPress         += new EventHandler <System.ComponentModel.CancelEventArgs>(page_BackKeyPress);
            page.OrientationChanged   += new EventHandler <OrientationChangedEventArgs>(page_OrientationChanged);
            double w = page.ActualWidth;
            double h = page.ActualHeight;

            browserControl = new BrowserControl()
            {
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment   = VerticalAlignment.Center,
                Height = h,
                Width  = w
            };

            parentControl = page.Content;
            page.Content  = browserControl;
            parentPage    = page;
        }
Пример #27
0
        public SocialPages()
        {
            InitializeComponent();
            object sn;

            if (PhoneApplicationService.Current.State.TryGetValue(HikeConstants.SOCIAL, out sn))
            {
                socialNetwork = (string)sn;
            }

            if (socialNetwork == HikeConstants.TWITTER)
            {
                PhoneApplicationService.Current.State["FromSocialPage"] = true;
                BrowserControl.IsScriptEnabled = false;
                AuthenticateTwitter();
            }
            else if (socialNetwork == HikeConstants.FACEBOOK)
            {
                PhoneApplicationService.Current.State["FromSocialPage"] = true;
                if (PhoneApplicationService.Current.State.ContainsKey("fromEnterName"))
                {
                    fromEnterName = true;
                }
                if (App.appSettings.Contains(HikeConstants.FB_LOGGED_IN))
                {
                    LogoutFb();
                }
                else
                {
                    LogInFb();
                }
            }
            else
            {
                string url  = (AccountUtils.IsProd ? "http://hike.in/" : "http://staging.im.hike.in:8080/") + "rewards/wp7/" + (string)App.appSettings[HikeConstants.REWARDS_TOKEN];
                Uri    page = new Uri(url);
                BrowserControl.Navigate(page);
            }
        }
Пример #28
0
 private void GuidanceVideoWindow_IsVisibleChanged(
     object _1,
     DependencyPropertyChangedEventArgs eventArgs)
 {
     if (this.IsVisible)
     {
         ClientStats.SendKeyMappingUIStatsAsync("video_clicked", KMManager.sPackageName, KMManager.sVideoMode.ToString());
         this.mBrowser = new BrowserControl();
         this.mBrowser.InitBaseControl(BlueStacksUIUtils.GetVideoTutorialUrl(KMManager.sPackageName, KMManager.sVideoMode.ToString().ToLower(CultureInfo.InvariantCulture), this.ParentWindow?.SelectedConfig?.SelectedControlScheme?.Name), 0.0f);
         this.mBrowser.ParentWindow = this.ParentWindow;
         this.mBrowser.Visibility   = Visibility.Visible;
         this.mBrowserGrid.Children.Add((UIElement)this.mBrowser);
     }
     try
     {
         if ((bool)eventArgs.NewValue)
         {
             HTTPUtils.SendRequestToEngineAsync("mute", new Dictionary <string, string>()
             {
                 ["explicit"] = "False"
             }, this.ParentWindow.mVmName, 0, (Dictionary <string, string>)null, false, 1, 0, "bgp");
             this.ParentWindow.mCommonHandler.OnVolumeMuted(true);
         }
         else
         {
             if (this.ParentWindow.IsMuted)
             {
                 return;
             }
             HTTPUtils.SendRequestToEngineAsync("unmute", (Dictionary <string, string>)null, this.ParentWindow.mVmName, 0, (Dictionary <string, string>)null, false, 1, 0, "bgp");
             this.ParentWindow.mCommonHandler.OnVolumeMuted(false);
         }
     }
     catch (Exception ex)
     {
         Logger.Error("Failed to send mute to frontend. Ex: " + ex.Message);
     }
 }
 private void BrowserControl_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     BrowserControl.InvokeScript("eval", "window.onerror=function(){return true}");
     try
     {
         if (clear)
         {
             clear = false;
             BrowserControl.InvokeScript("eval", "localStorage.clear()");
         }
         var o = BrowserControl.InvokeScript("eval", "localStorage.getItem('token')");
         if (o != DBNull.Value)
         {
             aliyundrive.token.SetToken(o.ToString());
             Close();
         }
         Console.WriteLine("内容:{0}", o);
     }
     catch (Exception ex)
     {
         Console.WriteLine("错误:{0}", ex.Message);
     }
 }
Пример #30
0
 private void CreateSideHtmlBrowserControl()
 {
     this.SideHtmlBrowserInited = true;
     this.Dispatcher.Invoke((Delegate)(() =>
     {
         BrowserControl browserControl = new BrowserControl(BlueStacksUIUtils.GetHtmlSidePanelUrl())
         {
             Visibility = Visibility.Visible
         };
         CustomPictureBox customPictureBox = new CustomPictureBox()
         {
             HorizontalAlignment = HorizontalAlignment.Center,
             VerticalAlignment = VerticalAlignment.Center,
             Height = 30.0,
             Width = 30.0,
             ImageName = "loader",
             IsImageToBeRotated = true
         };
         this.mAppRecommendationsGrid.Children.Add((UIElement)browserControl);
         this.mAppRecommendationsGrid.Children.Add((UIElement)customPictureBox);
         browserControl.CreateNewBrowser();
         this.SideHtmlBrowser = browserControl;
     }));
 }
Пример #31
0
        public SceneViewPageControl()
        {
            MetroSkinManager.ApplyMetroStyle(this);
            AutoScroll = false;
            Disposed += SceneViewPageControl_Disposed;
            Resize += SceneViewPageControl_Resize;
            m_cannotUseSymlinks = true;
            m_isRefreshingContent = false;
            m_editorsRegistry = new PropertiesControl.PropertyControlsRegistry();

            m_browser = new BrowserControl();
            m_browser.Width = Width;
            m_browser.Height = Height;
            Controls.Add(m_browser);

            m_manager = new SceneViewManagerControl();
            m_manager.Width = Width;
            Controls.Add(m_manager);
            m_manager.BringToFront();

            m_hierarchyPanel = new MetroSidePanel();
            MetroSkinManager.ApplyMetroStyle(m_hierarchyPanel);
            m_hierarchyPanel.Width = 250;
            m_hierarchyPanel.Height = Height;
            m_hierarchyPanel.Side = DockStyle.Left;
            m_hierarchyPanel.IsRolled = false;
            m_hierarchyPanel.IsDocked = false;
            m_hierarchyPanel.IsDockable = false;
            m_hierarchyPanel.AnimatedRolling = false;
            m_hierarchyPanel.OffsetPadding = new Padding(0, m_manager.Height, 0, 24);
            m_hierarchyPanel.Text = "HIERARCHY";
            m_hierarchyPanel.Rolled += sidePanel_RolledUnrolled;
            m_hierarchyPanel.Unrolled += sidePanel_RolledUnrolled;
            Controls.Add(m_hierarchyPanel);
            m_hierarchyPanel.BringToFront();

            m_inspectPanel = new MetroSidePanel();
            MetroSkinManager.ApplyMetroStyle(m_inspectPanel);
            m_inspectPanel.Width = 250;
            m_inspectPanel.Height = Height;
            m_inspectPanel.Side = DockStyle.Right;
            m_inspectPanel.IsRolled = false;
            m_inspectPanel.IsDocked = false;
            m_inspectPanel.IsDockable = false;
            m_inspectPanel.AnimatedRolling = false;
            m_inspectPanel.OffsetPadding = new Padding(0, m_manager.Height, 0, 24);
            m_inspectPanel.Text = "INSPECT";
            m_inspectPanel.Rolled += sidePanel_RolledUnrolled;
            m_inspectPanel.Unrolled += sidePanel_RolledUnrolled;
            Controls.Add(m_inspectPanel);
            m_inspectPanel.BringToFront();

            m_assetsPanel = new MetroSidePanel();
            MetroSkinManager.ApplyMetroStyle(m_assetsPanel);
            m_assetsPanel.Width = Width;
            m_assetsPanel.Height = 222;
            m_assetsPanel.Side = DockStyle.Bottom;
            m_assetsPanel.IsRolled = false;
            m_assetsPanel.IsDocked = false;
            m_assetsPanel.IsDockable = false;
            m_assetsPanel.AnimatedRolling = false;
            m_assetsPanel.Text = "ASSETS";
            m_assetsPanel.Rolled += sidePanel_RolledUnrolled;
            m_assetsPanel.Unrolled += sidePanel_RolledUnrolled;
            Controls.Add(m_assetsPanel);
            m_assetsPanel.BringToFront();

            m_assetsContent = new SceneViewAssetsControl(this);
            m_assetsContent.Dock = DockStyle.Fill;
            m_assetsPanel.Content.Controls.Clear();
            m_assetsPanel.Content.Controls.Add(m_assetsContent);
        }
Пример #32
0
        private void InitializeWelcomePage()
        {
            m_welcomePage = new BrowserControl();
            m_welcomePage.Dock = DockStyle.Fill;
            m_welcomePage.Navigate(PLAYCANVAS_DEVELOPER_URL, true);

            AddTabPage(m_welcomePage, TAB_NAME_WELCOME);
        }