public WindowGNUGeneralPublicLicense(Window owner) { Owner = owner; WindowStartupLocation = WindowStartupLocation.CenterOwner; InitializeComponent(); WebBrowser_Main.NavigateToStream(System.Reflection.Assembly.GetEntryAssembly().GetManifestResourceStream("PsHandler.Resources.gnu.html")); }
public void GoForward() { if (WebBrowser_Main.CanGoForward) { WebBrowser_Main.GoForward(); } }
public void GoBack() { if (WebBrowser_Main.CanGoBack) { WebBrowser_Main.GoBack(); } }
private void Btn_Enter_Click(object sender, EventArgs e) { try { if (TextBox_WebLink.Text != "") { WebBrowser_Main.Navigate(TextBox_WebLink.Text); } } catch (Exception) { } }
private void Form_SerialPortSetting_Load(object sender, EventArgs e) { try { string htmlPath = Environment.CurrentDirectory + "\\page.html"; WebBrowser_Main.Navigate(htmlPath); WebBrowser_Main.ObjectForScripting = this; } catch (Exception exception) { MessageBox.Show(exception.ToString()); return; } }
private void Btn_backward_Click(object sender, EventArgs e) { WebBrowser_Main.GoBack(); }
private void Btn_Forward_Click(object sender, EventArgs e) { WebBrowser_Main.GoForward(); }
public void Refresh() { WebBrowser_Main.Refresh(); }
public void Home() { WebBrowser_Main.Navigate(MainUrl); }