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(); } }
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(); } }