Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 98 - (show annotations) (download)
Thu Mar 6 13:04:43 2008 UTC (16 years, 1 month ago) by tmurakam
File size: 1687 byte(s)
ver 2.1 tags

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 checkIgnoreZeroTransaction.Checked = Properties.Settings.Default.IgnoreZeroTransaction;
23 checkManualOfxPath.Checked = Properties.Settings.Default.ManualOfxPath;
24 checkAutoKickOfxFile.Checked = Properties.Settings.Default.AutoKickOfxFile;
25 textSfcPeepPath.Text = Properties.Settings.Default.SFCPeepPath;
26 }
27
28 public void SaveProperties()
29 {
30 Properties.Settings.Default.IgnoreZeroTransaction = checkIgnoreZeroTransaction.Checked;
31 Properties.Settings.Default.ManualOfxPath = checkManualOfxPath.Checked;
32 Properties.Settings.Default.AutoKickOfxFile = checkAutoKickOfxFile.Checked;
33 Properties.Settings.Default.SFCPeepPath = textSfcPeepPath.Text;
34
35 Properties.Settings.Default.Save();
36 }
37
38 private void buttonSfcPath_Click(object sender, EventArgs e)
39 {
40 openFileDialog.FileName = textSfcPeepPath.Text;
41 openFileDialog.InitialDirectory = System.IO.Path.GetDirectoryName(textSfcPeepPath.Text);
42
43 if (openFileDialog.ShowDialog() == DialogResult.OK)
44 {
45 textSfcPeepPath.Text = openFileDialog.FileName;
46 }
47 }
48 }
49 }

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