2 writes to _path
System.Web.Mobile (2)
UI\MobileControls\Design\Util\TemporaryBitmapFile.cs (2)
36
_path
= Path.GetTempPath() + Guid.NewGuid().ToString() + ".bmp";
52
_path
= null;
11 references to _path
System.Web.Mobile (11)
UI\MobileControls\Design\Util\TemporaryBitmapFile.cs (11)
47
if(
_path
!= null)
49
FileAttributes fa = File.GetAttributes(
_path
);
50
File.SetAttributes(
_path
, fa & ~FileAttributes.ReadOnly);
51
File.Delete(
_path
);
60
if(File.Exists(
_path
))
62
fa = File.GetAttributes(
_path
);
63
File.SetAttributes(
_path
, fa & ~FileAttributes.ReadOnly);
66
_bitmap.Save(
_path
, ImageFormat.Bmp);
69
fa = File.GetAttributes(
_path
);
70
File.SetAttributes(
_path
, fa | FileAttributes.ReadOnly);
77
return "file:///" +
_path
;