1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Data.SqlClient;
- using System.Linq;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace Демо
- {
- static class Program
- {
- public static Form mainf { get; set; }
- /// <summary>
- /// Главная точка входа для приложения.
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- mainf = new Авторизация();
- while (mainf != null)
- {
- Application.Run(mainf);
- }
- Application.Exit();
- }
- public static void conn(out SqlConnection cn)
- {
- string ConnStr = "Data Source=(local);Initial Catalog=\"Школа языков\";Integrated Security=True";
- cn = new SqlConnection(ConnStr);
- cn.Open();
- }
- internal static class Role
- {
- public static string email { get; set; }
- public static int id { get; set; }
- public static DataTable table { get; set; }
- }
- }
- }
|