Wireup window with access methods + refaktor structure

This commit is contained in:
2020-03-22 21:52:02 +01:00
parent b1e62e829e
commit 88bd9b894a
16 changed files with 230 additions and 39 deletions

View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Text;
using TrackerLibrary.DataAccess;
namespace TrackerLibrary
{
public static class GlobalConfig
{
public static List<IDataConnection> Connections { get; private set; } = new List<IDataConnection>();
public static void InitializeConnections(bool database, bool textFiles)
{
if (database)
{
// TODO - Set up the sql connector properly !
SqlConnector sql = new SqlConnector();
Connections.Add(sql);
}
if (textFiles)
{
// TODO - Create the text Connection
TextConnector text = new TextConnector();
Connections.Add(text);
}
}
}
}