Changeset 60
- Timestamp:
- Jul 2, 2005, 2:58:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/MacFaceApp.cs
r58 r60 44 44 private int memHistoryCount; 45 45 46 private bool doExit;47 48 46 [STAThread] 49 47 public static void Main(string[] args) … … 120 118 public void StartApplication() 121 119 { 122 doExit = false;123 124 120 // çp^[ÇÝÝ 125 121 bool result = false; … … 131 127 if (!result) 132 128 { 133 if (!SelectFaceDefine(Application.StartupPath)) 129 string path = Path.Combine(Application.StartupPath, "default.plist"); 130 131 if (!LoadFaceDefine(path)) 134 132 { 135 133 Application.Exit(); … … 152 150 config.Save(); 153 151 } 154 155 /*156 * çp^[è`tH_Ið157 */158 public bool SelectFaceDefine()159 {160 return SelectFaceDefine(Application.StartupPath);161 }162 163 public bool SelectFaceDefine(string defaultPath)164 {165 while (true)166 {167 FolderBrowserDialog folderBrowser = new FolderBrowserDialog();168 folderBrowser.SelectedPath = defaultPath;169 folderBrowser.Description = "çp^[t@C̶ݷétH_ðIðµÄ¾³¢B";170 if (folderBrowser.ShowDialog() == DialogResult.OK)171 {172 if (LoadFaceDefine(folderBrowser.SelectedPath))173 {174 return true;175 }176 }177 else178 {179 return false;180 }181 }182 183 }184 185 152 186 153 public bool LoadFaceDefine(string path) … … 286 253 patternWindow.Move +=new EventHandler(patternWindow_Move); 287 254 288 LoadFaceDefine(config.FaceDefPath);289 290 255 patternWindow.Location = config.Location; 291 256 patternWindow.Opacity = (float)config.Opacity / 100; 292 257 patternWindow.PatternSize = (float)config.PatternSize / 100; 293 258 patternWindow.TransparentMouseMessage = config.TransparentMouseMessage; 294 patternWindow.Refresh(); 259 260 LoadFaceDefine(config.FaceDefPath); 295 261 296 262 patternWindow.Show(); … … 323 289 [NbNCxg 324 290 */ 325 public void menuItemPatternSelect_Click(object sender, System.EventArgs e)326 {327 SelectFaceDefine(patternWindow.FaceDef.Path);328 }329 291 330 292 public void menuItemExit_Click(object sender, System.EventArgs e)
Note: See TracChangeset
for help on using the changeset viewer.