private static void OnSessionHangupNotify(long channel_id, int code) { EndDevices(); if (code == 200) { Action action = () => { MessageBox.Show("已挂断"); MainForm.VideoChatForm vform = MainForm.VideoChatForm.GetInstance(); if (vform != null) { vform.Close(); } }; _ownerFriendsListForm.Invoke(action); } }
private static void OnSessionHangupNotify(long channel_id, int code) { DemoTrace.WriteLine("OnSessionHangupNotify channel_id:" + channel_id.ToString() + " code:" + code.ToString()); EndDevices(); if (code == 200) { Action action = () => { //MessageBox.Show("已挂断"); SendCommand("e"); MainForm.VideoChatForm vform = MainForm.VideoChatForm.GetInstance(); if (vform != null) { vform.Close(); } }; _ownerFriendsListForm.Invoke(action); } }