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,20 +1,18 @@
using CefSharp;
using System;
using System.IO;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
using EasyTabs;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using WebBrowser;
namespace WebBrowser
namespace XeroBrowser
{
public static class Program
{
public static AppContainer container;
public static AppContainer Container;
public static TitleBarTabsApplicationContext applicationContext;
public static TitleBarTabsApplicationContext ApplicationContext;
/// <summary>
/// The main entry point for the application.
/// </summary>
@ -23,7 +21,7 @@ namespace WebBrowser
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
container = new AppContainer();
Container = new AppContainer();
CefSettings settings = new CefSettings();
if (settings.CefCommandLineArgs.ContainsKey("enable-system-flash"))
@ -39,27 +37,30 @@ namespace WebBrowser
Cef.Initialize(settings);
container.Tabs.Add(
Container.Tabs.Add(
new EasyTabs.TitleBarTab(container)
new TitleBarTab(Container)
{
Content = new frmBrowser
{
Text = "New Tab"
Text = @"New Tab"
}
}
);
container.SelectedTabIndex = 0;
Container.SelectedTabIndex = 0;
try {
applicationContext = new TitleBarTabsApplicationContext();
applicationContext.Start(container);
Application.Run(applicationContext);
ApplicationContext = new TitleBarTabsApplicationContext();
ApplicationContext.Start(Container);
Application.Run(ApplicationContext);
}
catch (Exception)
{
// ignored
}
catch (Exception) { };
}
}
}