Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Socket      Client      = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            SeverCatch  serverCatch = new SeverCatch(Client);
            LoginWindow Login       = new LoginWindow(serverCatch);

            Login.ShowDialog();

            if (Login.DialogResult != DialogResult.OK)
            {
                return;
            }

            WinMain Accesster = new WinMain(serverCatch);

            Accesster.Text = "管理员:" + Login.IDInputer.Text;


            Login.Dispose();
            Application.Run(Accesster);
        }
Ejemplo n.º 2
0
 public WinMain(SeverCatch serverCatch)
 {
     InitializeComponent();
     this.serverCatch = serverCatch;
 }
Ejemplo n.º 3
0
 public WinDeleteStu(SeverCatch SqlSent)
 {
     sqlCatch = SqlSent;
     InitializeComponent();
 }
Ejemplo n.º 4
0
 public LoginWindow(SeverCatch serverCatch)
 {
     InitializeComponent();
     this.serverCatch = serverCatch;
 }
Ejemplo n.º 5
0
 public WinAddStu(SeverCatch sqlSent)
 {
     sqlCatch = sqlSent;
     InitializeComponent();
 }