-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
39 lines (35 loc) · 1.17 KB
/
Copy pathProgram.cs
File metadata and controls
39 lines (35 loc) · 1.17 KB
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
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data;
using System.Text;
using MySql.Data;
using MySql.Data.MySqlClient;
using Org.BouncyCastle.Crypto.Tls;
using System.Net;
using System.Data.SqlClient;
using System.IO;
namespace DormitoryManagment
{
internal static partial class Program
{
// The program starts here
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new StartScreen());
}
// Static users
internal static Manager manager = null;
internal static Student student = null;
internal static Admin admin = null;
// Static needed attributes for connection
internal static MySqlConnection conn = new MySqlConnection(
"server=103.200.22.212;user=luanapco_admin;database=luanapco_Database;port=3306;password=AWb@8AzpaqzH9Ev;charset=utf8");
// Static needed attributes for interaction with tables
internal static MySqlDataAdapter adapter = null;
}
}