Changeset 73
- Timestamp:
- Jul 12, 2006, 12:16:33 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/AssemblyInfo.cs
r67 r73 12 12 [assembly: AssemblyCompany("Team MacFace")] 13 13 [assembly: AssemblyProduct("MacFace for Windows")] 14 [assembly: AssemblyCopyright(" c 2005Team MacFace, All rights reserved.")]14 [assembly: AssemblyCopyright("Copyright c 2005-2006 Team MacFace, All rights reserved.")] 15 15 [assembly: AssemblyTrademark("")] 16 16 [assembly: AssemblyCulture("")] … … 27 27 // rh¨æÑrWÔðùèlÉ·é±ÆªÅ«Ü·B 28 28 29 [assembly: AssemblyInformationalVersion("At@Å(2005-09-09) ")]29 [assembly: AssemblyInformationalVersion("At@Å(2005-09-09)+p3")] 30 30 [assembly: AssemblyVersion("1.0.*")] 31 31 -
trunk/MacFaceFloat/MacFaceApp.cs
r72 r73 39 39 private MenuItem menuItemTogglePatternWindow; 40 40 private MenuItem menuItemToggleStatusWindow; 41 private MacFace.FaceDef curFaceDef; 41 42 42 43 [STAThread] … … 51 52 config = Configuration.GetInstance(); 52 53 config.Load(); 53 54 54 55 cpuStats = new CPUStatistics(81); 55 56 memStats = new MemoryStatistics(81); 56 57 pageio_count = 0; 58 // XXX: Îû@ªA·¬ÈÌð½Æ©·é 59 try 60 { 61 // µÉJE^ðÀsµÄÝé 62 cpuStats.Update(); 63 } 64 catch (System.ComponentModel.Win32Exception e) 65 { 66 // _¾Á½ÌÅptH[}XJE^ðgíÈ¢û@Ö 67 cpuStats = new CPUStatisticsGetSystemTime(61); 68 memStats = new MemoryStatisticsPSAPI(61); 69 } 57 70 58 71 updateTimer = new System.Windows.Forms.Timer(); … … 125 138 if (!result) 126 139 { 127 string path = Path.Combine(Application.StartupPath, "default. plist");140 string path = Path.Combine(Application.StartupPath, "default.mcface"); 128 141 129 142 if (!LoadFaceDefine(path)) … … 190 203 return false; 191 204 } 205 206 curFaceDef = newFaceDef; 192 207 193 208 if (patternWindow != null) … … 269 284 patternWindow.TransparentMouseMessage = config.TransparentMouseMessage; 270 285 271 LoadFaceDefine(config.FaceDefPath); 286 //LoadFaceDefine(config.FaceDefPath); 287 patternWindow.FaceDef = curFaceDef; 272 288 273 289 patternWindow.Show(); -
trunk/MacFaceFloat/PatternWindow.cs
r43 r73 80 80 Graphics g = this.Graphics; 81 81 g.Clear(Color.FromArgb(0, 0, 0, 0)); 82 g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; 82 83 curFaceDef.DrawPatternImage(g, curSuite, curPattern, curMarkers, patternSize); 83 84 base.Refresh(); -
trunk/MacFaceLibrary/CPUStatistics.cs
r61 r73 5 5 { 6 6 /// <summary> 7 /// CPUStats ÌTvÌà¾Å·B7 /// CPUStats nngY 8 8 /// </summary> 9 9 public class CPUStatistics … … 71 71 } 72 72 73 protected CPUUsage NextValue()73 protected virtual CPUUsage NextValue() 74 74 { 75 75 int user = (int)userCounter.NextValue(); -
trunk/MacFaceLibrary/MacFaceLibrary.csproj
r61 r73 105 105 /> 106 106 <File 107 RelPath = "CPUStatisticsGetSystemTime.cs" 108 SubType = "Code" 109 BuildAction = "Compile" 110 /> 111 <File 107 112 RelPath = "CPUUsage.cs" 108 113 SubType = "Code" … … 121 126 <File 122 127 RelPath = "MemoryStatistics.cs" 128 SubType = "Code" 129 BuildAction = "Compile" 130 /> 131 <File 132 RelPath = "MemoryStatisticsPSAPI.cs" 123 133 SubType = "Code" 124 134 BuildAction = "Compile" -
trunk/MacFaceLibrary/MemoryStatistics.cs
r61 r73 5 5 { 6 6 /// <summary> 7 /// MemoryStatistics ÌTvÌà¾Å·B7 /// MemoryStatistics nngY 8 8 /// </summary> 9 9 public class MemoryStatistics … … 110 110 } 111 111 112 public ulong CommitLimit112 public virtual ulong CommitLimit 113 113 { 114 114 get { return (ulong)commitLimitCounter.NextValue(); } … … 124 124 } 125 125 126 protected MemoryUsage NextValue()126 protected virtual MemoryUsage NextValue() 127 127 { 128 128 int available = (int)availableCounter.NextValue(); -
trunk/MacFaceLibrary/PropertyList.cs
r8 r73 25 25 reader.XmlResolver = null; 26 26 doc.Load(reader); 27 reader.Close(); 27 28 28 29 return ReadDictionary(doc.DocumentElement.FirstChild);
Note: See TracChangeset
for help on using the changeset viewer.