Created a "login" dialog form to grab the server name from the user. Now a valid connection must be made before the Main form loads.

This commit is contained in:
2017-04-12 20:01:32 -05:00
parent 2e19bba711
commit a67dd966bd
9 changed files with 317 additions and 10 deletions
@@ -1,3 +1,5 @@
using AdvertsingProfitControl.Properties;
namespace AdvertsingProfitControl
{
using System;
@@ -8,7 +10,7 @@ namespace AdvertsingProfitControl
public partial class AdvertisingProfitControlModel : DbContext
{
public AdvertisingProfitControlModel()
: base("name=AdvertisingProfitControlDbContext")
: base(Settings.Default.ConnectionString)
{
}