Changeset 39 for trunk/MacFaceFloat/ConfigurationForm.cs
- Timestamp:
- Feb 26, 2005, 2:55:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/ConfigurationForm.cs
r32 r39 3 3 using System.Collections; 4 4 using System.ComponentModel; 5 using System.Diagnostics; 5 6 using System.Windows.Forms; 6 7 using System.IO; … … 14 15 public class ConfigurationForm : System.Windows.Forms.Form 15 16 { 16 private Ma inForm _mainForm;17 private MacFaceApp _app; 17 18 private Configuration _config; 18 19 … … 42 43 private System.ComponentModel.IContainer components; 43 44 44 public ConfigurationForm(Ma inForm mainForm)45 public ConfigurationForm(MacFaceApp app) 45 46 { 46 47 // … … 49 50 InitializeComponent(); 50 51 51 _mainForm = mainForm;52 52 _config = Configuration.GetInstance(); 53 53 _app = app; 54 54 } 55 55 … … 371 371 private void ConfigurationForm_Load(object sender, System.EventArgs e) 372 372 { 373 // SÊð\¦B 373 // úlÌZbg 374 trackBarOpacity.Value = _config.Opacity; 375 trackBarPatternSize.Value = _config.PatternSize; 376 checkMouseMessage.Checked = _config.TransparentMouseMessage; 377 378 // êx·×ÄÌplðñ\¦É·é 374 379 foreach (Panel pane in panelContainer.Controls) 375 380 { … … 378 383 } 379 384 385 // SÊÌÝðÂÉ·é 380 386 panelAppearance.Show(); 381 382 // úlðZbgB383 trackBarOpacity.Value = (int) (_mainForm.Opacity * 100);384 trackBarPatternSize.Value = (int)(_mainForm.PatternSize * 100);385 checkMouseMessage.Checked = Configuration.GetInstance().TransparentMouseMessage;386 387 } 387 388 388 389 private void buttonOK_Click(object sender, System.EventArgs e) 389 390 { 390 Configuration config = Configuration.GetInstance(); 391 config.Opacity = trackBarOpacity.Value; 392 config.PatternSize = trackBarPatternSize.Value; 393 config.TransparentMouseMessage = checkMouseMessage.Checked; 391 _config.Opacity = trackBarOpacity.Value; 392 _config.PatternSize = trackBarPatternSize.Value; 393 _config.TransparentMouseMessage = checkMouseMessage.Checked; 394 394 395 395 this.Close(); … … 514 514 if (item != null) 515 515 { 516 _mainForm.LoadFaceDefine(item.SubItems[1].Text); 516 // TODO: ±±¾¯A^CÉÝèàeª½f³êéÌͽ¥ÁÛ¢ 517 _app.LoadFaceDefine(item.SubItems[1].Text); 517 518 } 518 519 } … … 533 534 try 534 535 { 535 System.Diagnostics.Process.Start(linkWebSite.Text);536 Process.Start(linkWebSite.Text); 536 537 } 537 538 catch (Win32Exception) {}
Note: See TracChangeset
for help on using the changeset viewer.