public BrowserForm(BrowserPanel panel) { Panel = panel; InitializeComponent(); FormBorderStyle = FormBorderStyle.None; TopLevel = false; }
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; }
public void Logout() { BrowserPanel.Navigate(Main.LogoutLink); //Logout of browser }
private void ShowTimetable(string html) { BrowserPanel.NavigateToString(html); //Load HTML into browser from string. }
public NoticesControl() { InitializeComponent(); BrowserPanel.Visibility = Visibility.Collapsed; //Hide window until ready to be shown BrowserPanel.Navigate(Main.NoticesLink); //Navigate to notices }
public void Login() //Needed so .HasMethod returns true for this class having a login function { BrowserPanel.Navigate(Main.NoticesLink); //Navigate to notices }