Esempio n. 1
0
 private void http_start(object sender, RoutedEventArgs e)
 {
     if (!Https.th_b)
     {
         Https.Start(int.Parse(servser_port.Text), http_print);
     }
 }
Esempio n. 2
0
 private void http_stop(object sender, RoutedEventArgs e)
 {
     if (Https.th_b)
     {
         Https.Stop(http_print);
     }
 }
Esempio n. 3
0
        private void window_close(object sender, System.ComponentModel.CancelEventArgs e)
        {
            thread_br = false;
            string file = Directory.GetCurrentDirectory() + "\\cache";

            if (Directory.Exists(file))
            {
                Directory.Delete(file, true);
            }
            if (Https.th_b)
            {
                Https.Stop(http_print);
            }
        }