예제 #1
0
        void MainWindow_OnClosing(object sender, CancelEventArgs e)
        {
            if (SoftPhone != null)
            {
                SoftPhone.CloseCall();
                SoftPhone.CloseAlarmCalls();
            }

            foreach (var camera in ModelList)
            {
                camera.Disconnect();
                camera.Close();
            }

            foreach (var viewer in _videoViewerList.Where(viewer => viewer.Model != null))
            {
                viewer.Model.Disconnect();
                viewer.Model.Close();
            }
        }
예제 #2
0
 void CallHangUpButton_Click(object sender, RoutedEventArgs e)
 {
     SoftPhone.CloseCall();
 }