ZForge.Motion.Core.AVIClass.Remove C# (CSharp) 메소드

Remove() 공개 메소드

public Remove ( ) : bool
리턴 bool
        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;
            }
        }