示例#1
0
 public BrowserForm(BrowserPanel panel)
 {
     Panel = panel;
     InitializeComponent();
     FormBorderStyle = FormBorderStyle.None;
     TopLevel        = false;
 }
示例#2
0
        public void CreateBrowserPanel(IContent content)
        {
            var browser = new BrowserPanel();

            _browsers.Add(browser);

            CreateContentPanel(browser, browser.ViewModel, content.Name);
            browser.ViewModel.Open(content);
            _mainWindowViewModel.BrowserPanelViewModel = browser.ViewModel;
        }
示例#3
0
 public void Logout()
 {
     BrowserPanel.Navigate(Main.LogoutLink);         //Logout of browser
 }
示例#4
0
 private void ShowTimetable(string html)
 {
     BrowserPanel.NavigateToString(html);        //Load HTML into browser from string.
 }
示例#5
0
 public NoticesControl()
 {
     InitializeComponent();
     BrowserPanel.Visibility = Visibility.Collapsed; //Hide window until ready to be shown
     BrowserPanel.Navigate(Main.NoticesLink);        //Navigate to notices
 }
示例#6
0
 public void Login()                          //Needed so .HasMethod returns true for this class having a login function
 {
     BrowserPanel.Navigate(Main.NoticesLink); //Navigate to notices
 }