private void ButtonRefresh(object sender, RoutedEventArgs e) { //if (ModeRec) //{ // recorder.SetRecordingFolder(AppDomain.CurrentDomain.BaseDirectory, Tools.TimeTools.dateAsString4FileName(DateTime.Now)); //} //else if (ModePlay) { ICollection <PlayPeerInfo> peers = player.LoadFile(FilePath, out DateTime startRecDateTime, out int maxTime); Maximum = maxTime; } }