Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 150 - (show annotations) (download)
Sun Mar 16 10:36:07 2008 UTC (16 years ago) by tmurakam
File size: 2445 byte(s)
ver 2.4 tag

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
24 checkIgnoreZeroTransaction.Checked = s.IgnoreZeroTransaction;
25 checkManualOfxPath.Checked = s.ManualOfxPath;
26 checkAutoKickOfxFile.Checked = s.AutoKickOfxFile;
27
28 //textSfcPeepPath.Text = s.SFCPeepPath;
29
30 int p = s.ShopAreaPriority;
31 switch (p)
32 {
33 default:
34 case Suica.AreaSuica: radioSuica.Checked = true; break;
35 case Suica.AreaIcoca: radioIcoca.Checked = true; break;
36 case Suica.AreaIruca: radioIruca.Checked = true; break;
37 }
38 }
39
40 public void SaveProperties()
41 {
42 Properties.Settings s = Properties.Settings.Default;
43
44 s.IgnoreZeroTransaction = checkIgnoreZeroTransaction.Checked;
45 s.ManualOfxPath = checkManualOfxPath.Checked;
46 s.AutoKickOfxFile = checkAutoKickOfxFile.Checked;
47 //s.SFCPeepPath = textSfcPeepPath.Text;
48
49 int p = Suica.AreaSuica;
50 if (radioSuica.Checked) p = Suica.AreaSuica;
51 else if (radioIcoca.Checked) p = Suica.AreaIcoca;
52 else if (radioIruca.Checked) p = Suica.AreaIruca;
53 s.ShopAreaPriority = p;
54
55 s.Save();
56 }
57
58 private void buttonCsvRulesUpdate_Click(object sender, EventArgs e)
59 {
60 if (CsvRules.DownloadRule())
61 {
62 MessageBox.Show("更新完了");
63 }
64 }
65
66 /*
67 private void buttonSfcPath_Click(object sender, EventArgs e)
68 {
69 openFileDialog.FileName = textSfcPeepPath.Text;
70 openFileDialog.InitialDirectory = System.IO.Path.GetDirectoryName(textSfcPeepPath.Text);
71
72 if (openFileDialog.ShowDialog() == DialogResult.OK)
73 {
74 textSfcPeepPath.Text = openFileDialog.FileName;
75 }
76 }
77 */
78 }
79 }

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