Esempio n. 1
0
        //добавляем конец сессии при закрытии формы
        private void pharm_FormClosed(object sender, FormClosedEventArgs e)
        {
            WebRequest  req  = WebRequest.Create(String.Format("http://localhost/exit.php?id_session={0}", id_ses));
            WebResponse resp = req.GetResponse();
            enter       en   = new enter();

            en.Show();
        }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // Application.Run(new enter());
            enter form1 = new enter();

            form1.Show();
            Application.Run();
        }