Changeset 73 for trunk/MacFaceFloat/MacFaceApp.cs
- Timestamp:
- Jul 12, 2006, 12:16:33 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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();
Note: See TracChangeset
for help on using the changeset viewer.