First version of the Main form that is able to pull all the required data from the SQL database. Holiday detection is disabled for this build. Fixed some bugs with the debug database conversion code. Still missing Ad Special data in the conversion code.

This commit is contained in:
2017-03-27 14:39:42 -05:00
parent 36fe75d761
commit 9da9540969
39 changed files with 104913 additions and 871 deletions
+11 -4
View File
@@ -9,9 +9,9 @@ namespace AdvertsingProfitControl
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
{
Application.EnableVisualStyles();
private static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.ThreadException += GlobalClasses.LogError;
AppDomain.CurrentDomain.UnhandledException += GlobalClasses.LogError;
@@ -19,7 +19,14 @@ namespace AdvertsingProfitControl
//var errorConsoleThread = new Thread(console.Show);
//errorConsoleThread.IsBackground = true;
//errorConsoleThread.Start();
Application.Run(new FrmMain());
if (args.Length == 1 && args[0] == "/debug")
{
Application.Run(new FrmMain(true));
}
else
{
Application.Run(new FrmMain(false));
}
}
}
}