private void _ingestSelectedToServer(object o) { if (!_checkEditMediaSaved()) { return; } IServerDirectory pri = _mediaManager.MediaDirectoryPRI; IServerDirectory sec = _mediaManager.MediaDirectorySEC; IServerDirectory dir = pri != null && pri.DirectoryExists() ? pri : sec != null && sec.DirectoryExists() ? sec : null; if (dir != null) { if (_selectedDirectory.IsIngestDirectory) { _ingestSelectionToDir(dir); } else { _mediaManager.CopyMediaToPlayout(_getSelections(), true); } } }