Beispiel #1
0
        private void ServerWindow_Closed(object sender, EventArgs e)
        {
            foreach (var MS in Dic.Keys)
            {
                MS.OnClosed -= MyStream_OnClosed;
                MS.SendCloseRequest();
            }

            foreach (var MS in Dic.Keys)
            {
                MS.Wait4Close();
            }
        }