public bool Remove()
{
try
{
System.IO.File.Delete(this.FileName);
//System.IO.File.Delete(this.FileName + @".xml");
return true;
}
catch (Exception ex)
{
string s = string.Format(Translator.Instance.T("删除录像[{0}]失败."), this.Title);
MessageBox.Show(s + "\n" + ex.Message, MotionPreference.Instance.MessageBoxCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
return false;
}
}