fixed a bug of CoverView

This commit is contained in:
NaBian committed 2019-02-12 10:23:20 +08:00
1 parent ab6e2efe21
commit b179d90aa1
6 files changed
+12 -11

No files matched your search

@@ -20,7 +20,7 @@ namespace HandyControlDemo.ViewModel
{
public class ChatBoxViewModel : ViewModelBase
{
private static readonly string AutioCachePath = $"{AppDomain.CurrentDomain.BaseDirectory}Cache";
private static readonly string AudioCachePath = $"{AppDomain.CurrentDomain.BaseDirectory}Cache";
private readonly string _id = Guid.NewGuid().ToString();
@@ -112,11 +112,11 @@ namespace HandyControlDemo.ViewModel
private void StopRecord()
{
if (!Directory.Exists(AutioCachePath))
if (!Directory.Exists(AudioCachePath))
{
try
{
Directory.CreateDirectory(AutioCachePath);
Directory.CreateDirectory(AudioCachePath);
}
catch (Exception e)
{
@@ -125,7 +125,7 @@ namespace HandyControlDemo.ViewModel
}
}
var cachePath = $"{AutioCachePath}\\{Guid.NewGuid().ToString()}";
var cachePath = $"{AudioCachePath}\\{Guid.NewGuid().ToString()}";
ExternDllHelper.MciSendString("stop movie", "", 0, 0);
ExternDllHelper.MciSendString($"save movie {cachePath}", "", 0, 0);
ExternDllHelper.MciSendString("close movie", "", 0, 0);