Program.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Data.SqlClient;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. using System.Windows.Forms;
  8. namespace Демо
  9. {
  10. static class Program
  11. {
  12. public static Form mainf { get; set; }
  13. /// <summary>
  14. /// Главная точка входа для приложения.
  15. /// </summary>
  16. [STAThread]
  17. static void Main()
  18. {
  19. Application.EnableVisualStyles();
  20. Application.SetCompatibleTextRenderingDefault(false);
  21. mainf = new Авторизация();
  22. while (mainf != null)
  23. {
  24. Application.Run(mainf);
  25. }
  26. Application.Exit();
  27. }
  28. /// <summary>
  29. ///
  30. /// </summary>
  31. /// <param name="cn">ggdgdfgfgd</param>
  32. public static void conn(out SqlConnection cn)
  33. {
  34. string ConnStr = "Data Source=DESKTOP-FKVAD5R\\SQLEXPRESS;Initial Catalog=\"Школа языков\";Integrated Security=True";
  35. cn = new SqlConnection(ConnStr);
  36. cn.Open();
  37. }
  38. internal static class Role
  39. {
  40. public static string email { get; set; }
  41. public static int id { get; set; }
  42. public static DataTable table { get; set; }
  43. }
  44. }
  45. }