Develop and Download Open Source Software

Browse Subversion Repository

Contents of /tags/FeliCa2Money-2.2/OptionDialog.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 109 - (show annotations) (download)
Sun Mar 9 06:14:50 2008 UTC (16 years, 1 month ago) by tmurakam
File size: 2248 byte(s)
ver 2.2

1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Text;
7 using System.Windows.Forms;
8
9 namespace FeliCa2Money
10 {
11 public partial class OptionDialog : Form
12 {
13 public OptionDialog()
14 {
15 InitializeComponent();
16
17 LoadProperties();
18 }
19
20 public void LoadProperties()
21 {
22 Properties.Settings s = Properties.Settings.Default;
23 s.Upgrade();
24
25 checkIgnoreZeroTransaction.Checked = s.IgnoreZeroTransaction;
26 checkManualOfxPath.Checked = s.ManualOfxPath;
27 checkAutoKickOfxFile.Checked = s.AutoKickOfxFile;
28
29 //textSfcPeepPath.Text = s.SFCPeepPath;
30
31 int p = s.ShopAreaPriority;
32 switch (p)
33 {
34 default:
35 case Suica.AreaSuica: radioSuica.Checked = true; break;
36 case Suica.AreaIcoca: radioIcoca.Checked = true; break;
37 case Suica.AreaIruca: radioIruca.Checked = true; break;
38 }
39 }
40
41 public void SaveProperties()
42 {
43 Properties.Settings s = Properties.Settings.Default;
44
45 s.IgnoreZeroTransaction = checkIgnoreZeroTransaction.Checked;
46 s.ManualOfxPath = checkManualOfxPath.Checked;
47 s.AutoKickOfxFile = checkAutoKickOfxFile.Checked;
48 //s.SFCPeepPath = textSfcPeepPath.Text;
49
50 int p = Suica.AreaSuica;
51 if (radioSuica.Checked) p = Suica.AreaSuica;
52 else if (radioIcoca.Checked) p = Suica.AreaIcoca;
53 else if (radioIruca.Checked) p = Suica.AreaIruca;
54 s.ShopAreaPriority = p;
55
56 s.Save();
57 }
58
59 /*
60 private void buttonSfcPath_Click(object sender, EventArgs e)
61 {
62 openFileDialog.FileName = textSfcPeepPath.Text;
63 openFileDialog.InitialDirectory = System.IO.Path.GetDirectoryName(textSfcPeepPath.Text);
64
65 if (openFileDialog.ShowDialog() == DialogResult.OK)
66 {
67 textSfcPeepPath.Text = openFileDialog.FileName;
68 }
69 }
70 */
71 }
72 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26