Fix ALL Warnings

This commit is contained in:
RandomHuman 2023-02-20 03:39:55 -07:00
parent c6f787c39c
commit dc5d26d13e
17 changed files with 186 additions and 204 deletions

View file

@ -1,8 +1,10 @@
// LifeSpanHandler.cs
using System;
using CefSharp;
using EasyTabs;
using System;
using WebBrowser;
using XeroBrowser;
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)
{
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
{
@ -24,8 +26,8 @@ namespace DiamondCreeperBrowser
};
frmBrowser frmref = (frmBrowser)tab.Content;
frmref.chromiumWebBrowser1.Load(targetUrl);
Program.container.Tabs.Add(tab);
Program.container.SelectedTab = tab;
Program.Container.Tabs.Add(tab);
Program.Container.SelectedTab = tab;
});