Skip to content

Commit

Permalink
Merge pull request #1 from RyanWalpoleEnterprises/unstable-dev
Browse files Browse the repository at this point in the history
Merge Unstable to Main
  • Loading branch information
RyanWalpole authored Mar 16, 2023
2 parents 57c52f1 + 69c3e14 commit b5acbdd
Show file tree
Hide file tree
Showing 51 changed files with 13,513 additions and 29 deletions.
2 changes: 1 addition & 1 deletion installer/cver.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
230101
230301
Binary file added installer/installmoxoquickweb.exe
Binary file not shown.
Binary file modified moxolib/win32/moxo.web.UI/.vs/moxo.web.UI/v17/.suo
Binary file not shown.
3 changes: 0 additions & 3 deletions moxolib/win32/moxo.web.UI/Moxo Web UI/Moxo Web UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Dark-Arrow-Left.png" />
</ItemGroup>
Expand Down
17 changes: 7 additions & 10 deletions moxolib/win32/moxo.web.UI/Moxo Web UI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@ static void Main()

try
{
string WV = CoreWebView2Environment.GetAvailableBrowserVersionString();

if (WV != null)
var version = CoreWebView2Environment.GetAvailableBrowserVersionString();
if(version != null)
{
Application.Run(new Startup());
}
else
{
//Microsoft Edge WebView2 Runtime Not Installed
MessageBox.Show("WebView2 is not installed on this system. For more information, visit https://github.com/RyanWalpoleEnterprises/Moxo-QuickWeb");
}
// Do something with `version` if needed.
}
catch
catch (WebView2RuntimeNotFoundException exception)
{
//Microsoft Edge WebView2 Runtime Assumed Not Installed
// Handle the runtime not being installed.
// `exception.Message` is very nicely specific: It (currently at least) says "Couldn't find a compatible Webview2 Runtime installation to host WebViews."
//Microsoft Edge WebView2 Runtime Not Installed
MessageBox.Show("WebView2 is not installed on this system. For more information, visit https://github.com/RyanWalpoleEnterprises/Moxo-QuickWeb");
}
}
Expand Down
12 changes: 4 additions & 8 deletions moxolib/win32/moxo.web.UI/Moxo Web UI/Startup.Designer.cs

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

16 changes: 16 additions & 0 deletions moxolib/win32/moxo.web.UI/Moxo Web UI/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,22 @@ public Startup()
this.Height = Properties.Settings.Default.MainWindowHeight;
this.Width = Properties.Settings.Default.MainWindowWidth;
this.Text = Properties.Settings.Default.ApplicationName;

//Set iconography
UI_Button_Back.Image = Properties.Resources.Dark_Arrow_Left;
UI_Button_Forward.Image = Properties.Resources.ic_fluent_arrow_right_24_filled;
UI_Button_Refresh.Image = Properties.Resources.Dark_Reload;
UI_Button_About.Image = Properties.Resources.ic_fluent_chat_help_24_filled;

try
{
//Set the URL for the WebView
UI_WebView.Source = new Uri(Settings.Default.WebViewSource);
}
catch
{
//
}
}

private void PreInitializeBrowserAsync()
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/Moxo QuickWeb/.vs/Moxo QuickWeb/v17/.suo
Binary file not shown.
5 changes: 4 additions & 1 deletion src/Moxo QuickWeb/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@
<userSettings>
<Moxo_QuickWeb.Properties.Settings>
<setting name="Version" serializeAs="String">
<value>230201</value>
<value>230301</value>
</setting>
<setting name="dotLX_tmpICO" serializeAs="String">
<value />
</setting>
<setting name="BuildVersion" serializeAs="String">
<value>10031603A</value>
</setting>
</Moxo_QuickWeb.Properties.Settings>
</userSettings>
</configuration>
Loading

0 comments on commit b5acbdd

Please sign in to comment.