public bool IsValid() { MotionFileInfo fi = new MotionFileInfo(this.FileName); if (false == fi.IsValid() || 0 == this.FileSize) { return(false); } try { Bitmap b = new Bitmap(this.FileName); b.Dispose(); return(true); } catch (Exception) { return(false); } }
public bool IsValid() { MotionFileInfo fi = new MotionFileInfo(this.FileName); if (false == fi.IsValid()) { return(false); } try { this.Open(); this.Close(); } catch (Exception) { return(false); } return(true); }
public bool IsValid() { MotionFileInfo fi = new MotionFileInfo(this.FileName); if (false == fi.IsValid() || 0 == this.FileSize) { return false; } try { Bitmap b = new Bitmap(this.FileName); b.Dispose(); return true; } catch (Exception) { return false; } }
public bool IsValid() { MotionFileInfo fi = new MotionFileInfo(this.FileName); if (false == fi.IsValid()) { return false; } try { this.Open(); this.Close(); } catch (Exception) { return false; } return true; }