-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
33 lines (26 loc) · 1.05 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using OnlineStore.Database_Files;
using System;
using System.Windows.Forms;
namespace OnlineStore
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// My Online MSQL DataBase
String connectionStr = "Data Source=SQL5041.site4now.net;Initial Catalog=DB_A5071D_OnlineStore;User Id=DB_A5071D_OnlineStore_admin;Password=01152160972Ah;";
// Local MSQL DataBase
//String connectionStr = "Data Source=DESKTOP-JEM2R23\\;Initial Catalog=OnlineStore;Integrated Security=True";
IConnectionString connectionString = new DataBaseConnection();
connectionString.SetConnectionString(connectionStr);
DataBase dataBase = DataBase.GetInstance(connectionString);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(mainPage.GetInstance());
}
}
}