Some refactorings
This commit is contained in:
@ -29,10 +29,7 @@ namespace TrackerUI
|
||||
prizeAmountValue.Text,
|
||||
prizePercentageValue.Text);
|
||||
|
||||
foreach (var db in GlobalConfig.Connections)
|
||||
{
|
||||
db.CreatePrize(model);
|
||||
}
|
||||
GlobalConfig.Connection.CreatePrize(model);
|
||||
|
||||
placeNameValue.Text = "";
|
||||
placeNumberValue.Text = "";
|
||||
|
||||
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TrackerLibrary;
|
||||
|
||||
namespace TrackerUI
|
||||
{
|
||||
@ -18,7 +19,7 @@ namespace TrackerUI
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
// Initialize the database connections
|
||||
TrackerLibrary.GlobalConfig.InitializeConnections(true, true);
|
||||
GlobalConfig.InitializeConnections(DatabaseType.Sql);
|
||||
Application.Run(new CreatePrizeForm());
|
||||
|
||||
//Application.Run(new TournamentDashboardForm());
|
||||
|
||||
Reference in New Issue
Block a user