-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
genej
authored and
genej
committed
Aug 13, 2023
1 parent
bf69513
commit 4cbba94
Showing
12 changed files
with
2,138 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System.Diagnostics; | ||
|
||
namespace Untitled_Browser_thing_ | ||
{ | ||
public partial class Form1 : Form | ||
{ | ||
public Form1() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void Form1_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
private void OnWebViewSourceChanged(object? sender, | ||
|
||
Microsoft.Web.WebView2.Core.CoreWebView2SourceChangedEventArgs e) | ||
{ | ||
textBox.Text = webView2.Source.ToString(); | ||
} | ||
private void OnTextBoxAddressKeyUp(object? sender, KeyEventArgs e) | ||
{ | ||
if (e.KeyCode == Keys.Enter) | ||
{ | ||
e.Handled = true; | ||
webView2.Source = new Uri(textBox.Text); | ||
} | ||
} | ||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
webView2.GoBack(); | ||
} | ||
|
||
private void button2_Click(object sender, EventArgs e) | ||
{ | ||
webView2.GoForward(); | ||
} | ||
|
||
private void button3_Click(object sender, EventArgs e) | ||
{ | ||
webView2.Reload(); | ||
} | ||
|
||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||
{ | ||
Process.Start("https://github.com/TheMicrosoftFan/WebSurf/releases/tag/1.1"); | ||
} | ||
} | ||
} |
Oops, something went wrong.