private void http_start(object sender, RoutedEventArgs e) { if (!Https.th_b) { Https.Start(int.Parse(servser_port.Text), http_print); } }
private void http_stop(object sender, RoutedEventArgs e) { if (Https.th_b) { Https.Stop(http_print); } }
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); } }