Fix ALL Warnings
This commit is contained in:
parent
c6f787c39c
commit
dc5d26d13e
17 changed files with 186 additions and 204 deletions
6
WebBrowser/AppContainer.Designer.cs
generated
6
WebBrowser/AppContainer.Designer.cs
generated
|
@ -1,11 +1,13 @@
|
||||||
namespace WebBrowser
|
using System.ComponentModel;
|
||||||
|
|
||||||
|
namespace WebBrowser
|
||||||
{
|
{
|
||||||
partial class AppContainer
|
partial class AppContainer
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
|
|
|
@ -1,13 +1,4 @@
|
||||||
using EasyTabs;
|
using EasyTabs;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace WebBrowser
|
namespace WebBrowser
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.ComponentModel;
|
||||||
using System.Text;
|
|
||||||
using CefSharp;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using CefSharp.Structs;
|
|
||||||
using CefSharp.Enums;
|
|
||||||
using WebBrowser;
|
|
||||||
using System.Net;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
|
using CefSharp;
|
||||||
|
using CefSharp.Enums;
|
||||||
|
using CefSharp.Structs;
|
||||||
|
using WebBrowser;
|
||||||
|
using Size = CefSharp.Structs.Size;
|
||||||
|
|
||||||
namespace DiamondCreeperBrowser
|
namespace DiamondCreeperBrowser
|
||||||
{
|
{
|
||||||
|
@ -30,10 +30,9 @@ namespace DiamondCreeperBrowser
|
||||||
}
|
}
|
||||||
public void OnAddressChanged(IWebBrowser chromiumWebBrowser, AddressChangedEventArgs addressChangedArgs)
|
public void OnAddressChanged(IWebBrowser chromiumWebBrowser, AddressChangedEventArgs addressChangedArgs)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool OnAutoResize(IWebBrowser chromiumWebBrowser, IBrowser browser, CefSharp.Structs.Size newSize)
|
public bool OnAutoResize(IWebBrowser chromiumWebBrowser, IBrowser browser, Size newSize)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -75,8 +74,8 @@ namespace DiamondCreeperBrowser
|
||||||
frmref.ParentTabs.RedrawTabs();
|
frmref.ParentTabs.RedrawTabs();
|
||||||
}
|
}
|
||||||
catch (Exception){
|
catch (Exception){
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmBrowser));
|
ComponentResourceManager resources = new ComponentResourceManager(typeof(frmBrowser));
|
||||||
frmref.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
frmref.Icon = ((Icon)(resources.GetObject("$this.Icon")));
|
||||||
frmref.Update();
|
frmref.Update();
|
||||||
frmref.ParentTabs.UpdateThumbnailPreviewIcon(frmref.ParentTabs.Tabs.Single(t => t.Content == frmref));
|
frmref.ParentTabs.UpdateThumbnailPreviewIcon(frmref.ParentTabs.Tabs.Single(t => t.Content == frmref));
|
||||||
frmref.ParentTabs.RedrawTabs();
|
frmref.ParentTabs.RedrawTabs();
|
||||||
|
@ -86,22 +85,18 @@ namespace DiamondCreeperBrowser
|
||||||
|
|
||||||
public void OnFullscreenModeChange(IWebBrowser chromiumWebBrowser, IBrowser browser, bool fullscreen)
|
public void OnFullscreenModeChange(IWebBrowser chromiumWebBrowser, IBrowser browser, bool fullscreen)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnLoadingProgressChange(IWebBrowser chromiumWebBrowser, IBrowser browser, double progress)
|
public void OnLoadingProgressChange(IWebBrowser chromiumWebBrowser, IBrowser browser, double progress)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnStatusMessage(IWebBrowser chromiumWebBrowser, StatusMessageEventArgs statusMessageArgs)
|
public void OnStatusMessage(IWebBrowser chromiumWebBrowser, StatusMessageEventArgs statusMessageArgs)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnTitleChanged(IWebBrowser chromiumWebBrowser, TitleChangedEventArgs titleChangedArgs)
|
public void OnTitleChanged(IWebBrowser chromiumWebBrowser, TitleChangedEventArgs titleChangedArgs)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool OnTooltipChanged(IWebBrowser chromiumWebBrowser, ref string text)
|
public bool OnTooltipChanged(IWebBrowser chromiumWebBrowser, ref string text)
|
||||||
|
|
|
@ -3,13 +3,12 @@
|
||||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using WebBrowser;
|
|
||||||
using CefSharp;
|
|
||||||
using System.IO;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.IO;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using CefSharp;
|
||||||
|
using WebBrowser;
|
||||||
|
using Timer = System.Threading.Timer;
|
||||||
|
|
||||||
namespace DiamondCreeperBrowser
|
namespace DiamondCreeperBrowser
|
||||||
{
|
{
|
||||||
|
@ -53,7 +52,7 @@ namespace DiamondCreeperBrowser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DownloadProgress_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e)
|
private void DownloadProgress_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
downloadItem.IsCancelled = true;
|
downloadItem.IsCancelled = true;
|
||||||
}
|
}
|
||||||
|
@ -66,13 +65,13 @@ namespace DiamondCreeperBrowser
|
||||||
|
|
||||||
if (downloadItem.IsComplete)
|
if (downloadItem.IsComplete)
|
||||||
{
|
{
|
||||||
fivesecondtimer = new Timer(new TimerCallback(tcallback), null, 1000 * 5, 1000 * 5);
|
fivesecondtimer = new Timer(tcallback, null, 1000 * 5, 1000 * 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
frmref.Invoke((Action)delegate {
|
frmref.Invoke((Action)delegate {
|
||||||
downloadProgress.ProgressBar1.Value = downloadItem.PercentComplete;
|
downloadProgress.ProgressBar1.Value = downloadItem.PercentComplete;
|
||||||
downloadProgress.ProgressPrecentage.Text = downloadItem.PercentComplete.ToString() + "% " + (downloadItem.ReceivedBytes / 0x100000).ToString() + "MB / " + (downloadItem.TotalBytes / 0x100000).ToString() + "MB";
|
downloadProgress.ProgressPrecentage.Text = downloadItem.PercentComplete + "% " + (downloadItem.ReceivedBytes / 0x100000) + "MB / " + (downloadItem.TotalBytes / 0x100000) + "MB";
|
||||||
downloadProgress.ProgressFileName.Text = Path.GetFileName(downloadItem.FullPath);
|
downloadProgress.ProgressFileName.Text = Path.GetFileName(downloadItem.FullPath);
|
||||||
downloadProgress.Update();
|
downloadProgress.Update();
|
||||||
try { } catch (InvalidAsynchronousStateException){};
|
try { } catch (InvalidAsynchronousStateException){};
|
||||||
|
|
11
WebBrowser/DownloadProgress.Designer.cs
generated
11
WebBrowser/DownloadProgress.Designer.cs
generated
|
@ -1,4 +1,7 @@
|
||||||
|
|
||||||
|
using System.ComponentModel;
|
||||||
|
using Bunifu.UI.WinForms;
|
||||||
|
|
||||||
namespace DiamondCreeperBrowser
|
namespace DiamondCreeperBrowser
|
||||||
{
|
{
|
||||||
partial class DownloadProgress
|
partial class DownloadProgress
|
||||||
|
@ -6,7 +9,7 @@ namespace DiamondCreeperBrowser
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
|
@ -132,8 +135,8 @@ namespace DiamondCreeperBrowser
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
public Bunifu.UI.WinForms.BunifuProgressBar ProgressBar1;
|
public BunifuProgressBar ProgressBar1;
|
||||||
public Bunifu.UI.WinForms.BunifuLabel ProgressPrecentage;
|
public BunifuLabel ProgressPrecentage;
|
||||||
public Bunifu.UI.WinForms.BunifuLabel ProgressFileName;
|
public BunifuLabel ProgressFileName;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,11 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace DiamondCreeperBrowser
|
namespace DiamondCreeperBrowser
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
// LifeSpanHandler.cs
|
// LifeSpanHandler.cs
|
||||||
|
|
||||||
|
using System;
|
||||||
using CefSharp;
|
using CefSharp;
|
||||||
using EasyTabs;
|
using EasyTabs;
|
||||||
using System;
|
|
||||||
using WebBrowser;
|
using WebBrowser;
|
||||||
|
using XeroBrowser;
|
||||||
|
|
||||||
namespace DiamondCreeperBrowser
|
namespace DiamondCreeperBrowser
|
||||||
{
|
{
|
||||||
|
@ -12,10 +14,10 @@ namespace DiamondCreeperBrowser
|
||||||
public bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser)
|
public bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser)
|
||||||
{
|
{
|
||||||
|
|
||||||
Program.container.Invoke((Action)delegate
|
Program.Container.Invoke((Action)delegate
|
||||||
{
|
{
|
||||||
|
|
||||||
EasyTabs.TitleBarTab tab = new EasyTabs.TitleBarTab(Program.container)
|
TitleBarTab tab = new TitleBarTab(Program.Container)
|
||||||
{
|
{
|
||||||
Content = new frmBrowser
|
Content = new frmBrowser
|
||||||
{
|
{
|
||||||
|
@ -24,8 +26,8 @@ namespace DiamondCreeperBrowser
|
||||||
};
|
};
|
||||||
frmBrowser frmref = (frmBrowser)tab.Content;
|
frmBrowser frmref = (frmBrowser)tab.Content;
|
||||||
frmref.chromiumWebBrowser1.Load(targetUrl);
|
frmref.chromiumWebBrowser1.Load(targetUrl);
|
||||||
Program.container.Tabs.Add(tab);
|
Program.Container.Tabs.Add(tab);
|
||||||
Program.container.SelectedTab = tab;
|
Program.Container.SelectedTab = tab;
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using CefSharp;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using CefSharp;
|
||||||
|
|
||||||
public class MenuHandler : IContextMenuHandler
|
public class MenuHandler : IContextMenuHandler
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
using CefSharp;
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using CefSharp;
|
||||||
using CefSharp.WinForms;
|
using CefSharp.WinForms;
|
||||||
using EasyTabs;
|
using EasyTabs;
|
||||||
using System;
|
using WebBrowser;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace WebBrowser
|
namespace XeroBrowser
|
||||||
{
|
{
|
||||||
public static class Program
|
public static class Program
|
||||||
{
|
{
|
||||||
public static AppContainer container;
|
public static AppContainer Container;
|
||||||
|
|
||||||
public static TitleBarTabsApplicationContext applicationContext;
|
public static TitleBarTabsApplicationContext ApplicationContext;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The main entry point for the application.
|
/// The main entry point for the application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -23,7 +21,7 @@ namespace WebBrowser
|
||||||
{
|
{
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
container = new AppContainer();
|
Container = new AppContainer();
|
||||||
CefSettings settings = new CefSettings();
|
CefSettings settings = new CefSettings();
|
||||||
|
|
||||||
if (settings.CefCommandLineArgs.ContainsKey("enable-system-flash"))
|
if (settings.CefCommandLineArgs.ContainsKey("enable-system-flash"))
|
||||||
|
@ -39,27 +37,30 @@ namespace WebBrowser
|
||||||
|
|
||||||
Cef.Initialize(settings);
|
Cef.Initialize(settings);
|
||||||
|
|
||||||
container.Tabs.Add(
|
Container.Tabs.Add(
|
||||||
|
|
||||||
new EasyTabs.TitleBarTab(container)
|
new TitleBarTab(Container)
|
||||||
{
|
{
|
||||||
Content = new frmBrowser
|
Content = new frmBrowser
|
||||||
{
|
{
|
||||||
Text = "New Tab"
|
Text = @"New Tab"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
container.SelectedTabIndex = 0;
|
Container.SelectedTabIndex = 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
applicationContext = new TitleBarTabsApplicationContext();
|
ApplicationContext = new TitleBarTabsApplicationContext();
|
||||||
applicationContext.Start(container);
|
ApplicationContext.Start(Container);
|
||||||
Application.Run(applicationContext);
|
Application.Run(ApplicationContext);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
// ignored
|
||||||
}
|
}
|
||||||
catch (Exception) { };
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
|
|
56
WebBrowser/Properties/Resources.Designer.cs
generated
56
WebBrowser/Properties/Resources.Designer.cs
generated
|
@ -8,10 +8,16 @@
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System.CodeDom.Compiler;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.Resources;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace XeroBrowser.Properties {
|
namespace XeroBrowser.Properties {
|
||||||
using System;
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -19,27 +25,27 @@ namespace XeroBrowser.Properties {
|
||||||
// class via a tool like ResGen or Visual Studio.
|
// class via a tool like ResGen or Visual Studio.
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
// with the /str option, or rebuild your VS project.
|
// with the /str option, or rebuild your VS project.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[DebuggerNonUserCode()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[CompilerGenerated()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
|
|
||||||
private static global::System.Resources.ResourceManager resourceMan;
|
private static ResourceManager resourceMan;
|
||||||
|
|
||||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
private static CultureInfo resourceCulture;
|
||||||
|
|
||||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||||
internal Resources() {
|
internal Resources() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the cached ResourceManager instance used by this class.
|
/// Returns the cached ResourceManager instance used by this class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
internal static ResourceManager ResourceManager {
|
||||||
get {
|
get {
|
||||||
if (object.ReferenceEquals(resourceMan, null)) {
|
if (ReferenceEquals(resourceMan, null)) {
|
||||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("XeroBrowser.Properties.Resources", typeof(Resources).Assembly);
|
ResourceManager temp = new ResourceManager("XeroBrowser.Properties.Resources", typeof(Resources).Assembly);
|
||||||
resourceMan = temp;
|
resourceMan = temp;
|
||||||
}
|
}
|
||||||
return resourceMan;
|
return resourceMan;
|
||||||
|
@ -50,8 +56,8 @@ namespace XeroBrowser.Properties {
|
||||||
/// Overrides the current thread's CurrentUICulture property for all
|
/// Overrides the current thread's CurrentUICulture property for all
|
||||||
/// resource lookups using this strongly typed resource class.
|
/// resource lookups using this strongly typed resource class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Globalization.CultureInfo Culture {
|
internal static CultureInfo Culture {
|
||||||
get {
|
get {
|
||||||
return resourceCulture;
|
return resourceCulture;
|
||||||
}
|
}
|
||||||
|
@ -63,50 +69,50 @@ namespace XeroBrowser.Properties {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap insecure {
|
internal static Bitmap insecure {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("insecure", resourceCulture);
|
object obj = ResourceManager.GetObject("insecure", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap insecure1 {
|
internal static Bitmap insecure1 {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("insecure1", resourceCulture);
|
object obj = ResourceManager.GetObject("insecure1", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap local {
|
internal static Bitmap local {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("local", resourceCulture);
|
object obj = ResourceManager.GetObject("local", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap secure {
|
internal static Bitmap secure {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("secure", resourceCulture);
|
object obj = ResourceManager.GetObject("secure", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap Xero_Browser_Ico {
|
internal static Bitmap Xero_Browser_Ico {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("Xero Browser Ico", resourceCulture);
|
object obj = ResourceManager.GetObject("Xero Browser Ico", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
12
WebBrowser/Properties/Settings.Designer.cs
generated
12
WebBrowser/Properties/Settings.Designer.cs
generated
|
@ -8,14 +8,18 @@
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System.CodeDom.Compiler;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace XeroBrowser.Properties {
|
namespace XeroBrowser.Properties {
|
||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[CompilerGenerated()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")]
|
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(Synchronized(new Settings())));
|
||||||
|
|
||||||
public static Settings Default {
|
public static Settings Default {
|
||||||
get {
|
get {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using CefSharp;
|
|
||||||
using WebBrowser;
|
|
||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Windows.Forms;
|
using CefSharp;
|
||||||
|
|
||||||
namespace DiamondCreeperBrowser
|
namespace DiamondCreeperBrowser
|
||||||
{
|
{
|
||||||
|
|
36
WebBrowser/frmBrowser.Designer.cs
generated
36
WebBrowser/frmBrowser.Designer.cs
generated
|
@ -1,11 +1,17 @@
|
||||||
namespace WebBrowser
|
using System.ComponentModel;
|
||||||
|
using Bunifu.Framework.UI;
|
||||||
|
using Bunifu.UI.WinForms;
|
||||||
|
using CefSharp.WinForms;
|
||||||
|
using BunifuImageButton = Bunifu.UI.WinForms.BunifuImageButton;
|
||||||
|
|
||||||
|
namespace WebBrowser
|
||||||
{
|
{
|
||||||
partial class frmBrowser
|
partial class frmBrowser
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
|
@ -567,18 +573,18 @@
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private Bunifu.Framework.UI.BunifuCards bunifuCards1;
|
private BunifuCards bunifuCards1;
|
||||||
private Bunifu.UI.WinForms.BunifuToolTip bunifuToolTip1;
|
private BunifuToolTip bunifuToolTip1;
|
||||||
public CefSharp.WinForms.ChromiumWebBrowser chromiumWebBrowser1;
|
public ChromiumWebBrowser chromiumWebBrowser1;
|
||||||
private Bunifu.UI.WinForms.BunifuTextBox txtSearchOrUrl;
|
private BunifuTextBox txtSearchOrUrl;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton bunifuImageButton2;
|
private BunifuImageButton bunifuImageButton2;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton bunifuImageButton1;
|
private BunifuImageButton bunifuImageButton1;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton btnBack;
|
private BunifuImageButton btnBack;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton btnSettings;
|
private BunifuImageButton btnSettings;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton btnForward;
|
private BunifuImageButton btnForward;
|
||||||
private Bunifu.UI.WinForms.BunifuLoader loadingIndicator;
|
private BunifuLoader loadingIndicator;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton btnRefresh;
|
private BunifuImageButton btnRefresh;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton bunifuImageButton3;
|
private BunifuImageButton bunifuImageButton3;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton bunifuImageButton4;
|
private BunifuImageButton bunifuImageButton4;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,24 +1,12 @@
|
||||||
using Bunifu.Utils;
|
using System;
|
||||||
using CefSharp;
|
|
||||||
using CefSharp.WinForms;
|
|
||||||
using DiamondCreeperBrowser;
|
|
||||||
using XeroBrowser.Properties;
|
|
||||||
using EasyTabs;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Security.Policy;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using CefSharp.DevTools.Network;
|
|
||||||
using CefSharp.DevTools.Page;
|
|
||||||
using System.Runtime.Versioning;
|
|
||||||
using System.Xml.Linq;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using Bunifu.Utils;
|
||||||
|
using CefSharp;
|
||||||
|
using DiamondCreeperBrowser;
|
||||||
|
using EasyTabs;
|
||||||
|
using XeroBrowser.Properties;
|
||||||
|
|
||||||
namespace WebBrowser
|
namespace WebBrowser
|
||||||
{
|
{
|
||||||
|
@ -38,7 +26,7 @@ namespace WebBrowser
|
||||||
string fileUrl = fileUri.AbsoluteUri;
|
string fileUrl = fileUri.AbsoluteUri;
|
||||||
chromiumWebBrowser1.Load(fileUrl);
|
chromiumWebBrowser1.Load(fileUrl);
|
||||||
txtSearchOrUrl.Text = "";
|
txtSearchOrUrl.Text = "";
|
||||||
Form.CheckForIllegalCrossThreadCalls = false;
|
CheckForIllegalCrossThreadCalls = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,18 +59,18 @@ namespace WebBrowser
|
||||||
chromiumWebBrowser1.Reload();
|
chromiumWebBrowser1.Reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool isBlocked = false;
|
private bool isBlocked;
|
||||||
private void chromiumWebBrowser1_LoadingStateChanged(object sender, LoadingStateChangedEventArgs e)
|
private void chromiumWebBrowser1_LoadingStateChanged(object sender, LoadingStateChangedEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.IsLoading)
|
if (e.IsLoading)
|
||||||
{
|
{
|
||||||
this.loadingIndicator.Visible = true;
|
loadingIndicator.Visible = true;
|
||||||
this.btnRefresh.Visible = false;
|
btnRefresh.Visible = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.loadingIndicator.Visible = false;
|
loadingIndicator.Visible = false;
|
||||||
this.btnRefresh.Visible = true;
|
btnRefresh.Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -90,7 +78,7 @@ namespace WebBrowser
|
||||||
if (this == null)
|
if (this == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.Invoke((Action)delegate
|
Invoke((Action)delegate
|
||||||
{
|
{
|
||||||
if (txtSearchOrUrl != null && chromiumWebBrowser1 != null)
|
if (txtSearchOrUrl != null && chromiumWebBrowser1 != null)
|
||||||
{
|
{
|
||||||
|
@ -112,19 +100,19 @@ namespace WebBrowser
|
||||||
var uri = new Uri(chromiumWebBrowser1.Address);
|
var uri = new Uri(chromiumWebBrowser1.Address);
|
||||||
if (uri.Scheme == "file")
|
if (uri.Scheme == "file")
|
||||||
{
|
{
|
||||||
txtSearchOrUrl.IconLeft = XeroBrowser.Properties.Resources.local;
|
txtSearchOrUrl.IconLeft = Resources.local;
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (uri.Scheme == "https")
|
else if (uri.Scheme == "https")
|
||||||
{
|
{
|
||||||
txtSearchOrUrl.IconLeft = XeroBrowser.Properties.Resources.secure;
|
txtSearchOrUrl.IconLeft = Resources.secure;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
txtSearchOrUrl.IconLeft = XeroBrowser.Properties.Resources.insecure1;
|
txtSearchOrUrl.IconLeft = Resources.insecure1;
|
||||||
if (!isBlocked)
|
if (!isBlocked)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Warning: This site is insecure!, Your personal information may be at risk or hackers can install malicious software on your device.", "Xero Browser", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning);
|
MessageBox.Show("Warning: This site is insecure!, Your personal information may be at risk or hackers can install malicious software on your device.", "Xero Browser", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -179,7 +167,7 @@ namespace WebBrowser
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
this.Invoke((Action)delegate { this.FindForm().Text = e.Title; });
|
Invoke((Action)delegate { FindForm().Text = e.Title; });
|
||||||
}
|
}
|
||||||
catch (ObjectDisposedException) { }
|
catch (ObjectDisposedException) { }
|
||||||
}
|
}
|
||||||
|
|
83
WebBrowser/frmSettings.Designer.cs
generated
83
WebBrowser/frmSettings.Designer.cs
generated
|
@ -1,11 +1,16 @@
|
||||||
namespace WebBrowser
|
using System.ComponentModel;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using Bunifu.UI.WinForms;
|
||||||
|
using Bunifu.UI.WinForms.BunifuButton;
|
||||||
|
|
||||||
|
namespace WebBrowser
|
||||||
{
|
{
|
||||||
partial class frmSettings
|
partial class frmSettings
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
|
@ -1211,42 +1216,42 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
private System.Windows.Forms.TabControl tabControl1;
|
private TabControl tabControl1;
|
||||||
private System.Windows.Forms.TabPage tabBrowser;
|
private TabPage tabBrowser;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel1;
|
private BunifuLabel bunifuLabel1;
|
||||||
private System.Windows.Forms.TabPage tabPrivacy;
|
private TabPage tabPrivacy;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel2;
|
private BunifuLabel bunifuLabel2;
|
||||||
private Bunifu.UI.WinForms.BunifuFormDock bunifuFormDock1;
|
private BunifuFormDock bunifuFormDock1;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel3;
|
private BunifuLabel bunifuLabel3;
|
||||||
private System.Windows.Forms.TabPage tabPersonalization;
|
private TabPage tabPersonalization;
|
||||||
private Bunifu.UI.WinForms.BunifuDropdown bunifuDropdown1;
|
private BunifuDropdown bunifuDropdown1;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel6;
|
private BunifuLabel bunifuLabel6;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel5;
|
private BunifuLabel bunifuLabel5;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel8;
|
private BunifuLabel bunifuLabel8;
|
||||||
private Bunifu.UI.WinForms.BunifuDropdown bunifuDropdown2;
|
private BunifuDropdown bunifuDropdown2;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel9;
|
private BunifuLabel bunifuLabel9;
|
||||||
private Bunifu.UI.WinForms.BunifuDropdown bunifuDropdown3;
|
private BunifuDropdown bunifuDropdown3;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel4;
|
private BunifuLabel bunifuLabel4;
|
||||||
private Bunifu.UI.WinForms.BunifuButton.BunifuButton2 bunifuButton21;
|
private BunifuButton2 bunifuButton21;
|
||||||
private Bunifu.UI.WinForms.BunifuButton.BunifuButton2 bunifuButton22;
|
private BunifuButton2 bunifuButton22;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel7;
|
private BunifuLabel bunifuLabel7;
|
||||||
private Bunifu.UI.WinForms.BunifuRadioButton bunifuRadioButton2;
|
private BunifuRadioButton bunifuRadioButton2;
|
||||||
private Bunifu.UI.WinForms.BunifuRadioButton bunifuRadioButton1;
|
private BunifuRadioButton bunifuRadioButton1;
|
||||||
private Bunifu.UI.WinForms.BunifuDropdown bunifuDropdown5;
|
private BunifuDropdown bunifuDropdown5;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel11;
|
private BunifuLabel bunifuLabel11;
|
||||||
private Bunifu.UI.WinForms.BunifuDropdown bunifuDropdown4;
|
private BunifuDropdown bunifuDropdown4;
|
||||||
private Bunifu.UI.WinForms.BunifuToggleSwitch2 bunifuToggleSwitch22;
|
private BunifuToggleSwitch2 bunifuToggleSwitch22;
|
||||||
private Bunifu.UI.WinForms.BunifuToggleSwitch2 bunifuToggleSwitch21;
|
private BunifuToggleSwitch2 bunifuToggleSwitch21;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel10;
|
private BunifuLabel bunifuLabel10;
|
||||||
private Bunifu.UI.WinForms.BunifuDropdown bunifuDropdown6;
|
private BunifuDropdown bunifuDropdown6;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel12;
|
private BunifuLabel bunifuLabel12;
|
||||||
internal Bunifu.UI.WinForms.BunifuTextBox bunifuTextBox1;
|
internal BunifuTextBox bunifuTextBox1;
|
||||||
private System.Windows.Forms.TabPage tabBehavior;
|
private TabPage tabBehavior;
|
||||||
private System.Windows.Forms.PictureBox pictureBox1;
|
private PictureBox pictureBox1;
|
||||||
private Bunifu.UI.WinForms.BunifuPictureBox bunifuPictureBox1;
|
private BunifuPictureBox bunifuPictureBox1;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel13;
|
private BunifuLabel bunifuLabel13;
|
||||||
private Bunifu.UI.WinForms.BunifuImageButton bunifuImageButton1;
|
private BunifuImageButton bunifuImageButton1;
|
||||||
private Bunifu.UI.WinForms.BunifuDropdown bunifuDropdown7;
|
private BunifuDropdown bunifuDropdown7;
|
||||||
private Bunifu.UI.WinForms.BunifuLabel bunifuLabel14;
|
private BunifuLabel bunifuLabel14;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,17 +1,7 @@
|
||||||
using CefSharp.WinForms;
|
using System;
|
||||||
using CefSharp;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Bunifu.UI.WinForms;
|
using Bunifu.UI.WinForms;
|
||||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
|
||||||
|
|
||||||
namespace WebBrowser
|
namespace WebBrowser
|
||||||
{
|
{
|
||||||
|
@ -23,12 +13,12 @@ namespace WebBrowser
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void bunifuToggleSwitchflash_CheckedChanged(object sender, Bunifu.UI.WinForms.BunifuToggleSwitch.CheckedChangedEventArgs e)
|
private void bunifuToggleSwitchflash_CheckedChanged(object sender, BunifuToggleSwitch.CheckedChangedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void bunifuToggleSwitchcookies_CheckedChanged(object sender, Bunifu.UI.WinForms.BunifuToggleSwitch.CheckedChangedEventArgs e)
|
private void bunifuToggleSwitchcookies_CheckedChanged(object sender, BunifuToggleSwitch.CheckedChangedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -55,7 +45,7 @@ namespace WebBrowser
|
||||||
|
|
||||||
private void bunifuImageButton1_Click(object sender, EventArgs e)
|
private void bunifuImageButton1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
this.Close();
|
Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue