Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
genej authored and genej committed Aug 13, 2023
1 parent bf69513 commit 4cbba94
Show file tree
Hide file tree
Showing 12 changed files with 2,138 additions and 0 deletions.
169 changes: 169 additions & 0 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions Form1.cs
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");
}
}
}
Loading

0 comments on commit 4cbba94

Please sign in to comment.