Browse Subversion Repository
Contents of /CommandOptionWindows/VoteBanCommandOptionWindow.cs
Parent Directory
| Revision Log
Revision 2 -
( show annotations)
( download)
Sun Jan 16 07:30:44 2011 UTC
(13 years, 3 months ago)
by aqua877
File size: 1738 byte(s)
Implemented TextReaderService.
| 1 |
using System; |
| 2 |
using System.Collections.Generic; |
| 3 |
using System.ComponentModel; |
| 4 |
using System.Data; |
| 5 |
using System.Drawing; |
| 6 |
using System.Linq; |
| 7 |
using System.Text; |
| 8 |
using System.Windows.Forms; |
| 9 |
|
| 10 |
namespace Aqua877.WinApp.IronLivetube.CommandOptionWindows |
| 11 |
{ |
| 12 |
public partial class VoteBanCommandOptionWindow : Form |
| 13 |
{ |
| 14 |
public VoteBanCommandOptionWindow() |
| 15 |
{ |
| 16 |
this.InitializeComponent(); |
| 17 |
|
| 18 |
this.ExecuteCommandBorderTextBox.Value = GlobalValues.Setting.ExecuteCommandBorder; |
| 19 |
this.IsCheckOverlapByIDAndHostCheckBox.Checked = GlobalValues.Setting.IsCheckOverlapByIDAndHost; |
| 20 |
this.IsSetValidityPeriodCheckBox.Checked = GlobalValues.Setting.IsSetValidityPeriod; |
| 21 |
} |
| 22 |
|
| 23 |
private void OKButton_Click(object sender, EventArgs e) |
| 24 |
{ |
| 25 |
this.Close(); |
| 26 |
} |
| 27 |
|
| 28 |
private void ExecuteCommandBorderTextBox_ValueChanged(object sender, EventArgs e) |
| 29 |
{ |
| 30 |
GlobalValues.Setting.ExecuteCommandBorder = (uint)this.ExecuteCommandBorderTextBox.Value; |
| 31 |
} |
| 32 |
|
| 33 |
private void IsCheckOverlapByIDAndHostCheckBox_CheckedChanged(object sender, EventArgs e) |
| 34 |
{ |
| 35 |
GlobalValues.Setting.IsCheckOverlapByIDAndHost = this.IsCheckOverlapByIDAndHostCheckBox.Checked; |
| 36 |
} |
| 37 |
|
| 38 |
private void IsSetValidityPeriodCheckBox_CheckedChanged(object sender, EventArgs e) |
| 39 |
{ |
| 40 |
GlobalValues.Setting.IsSetValidityPeriod = this.IsSetValidityPeriodCheckBox.Checked; |
| 41 |
|
| 42 |
if (this.IsSetValidityPeriodCheckBox.Checked) |
| 43 |
{ |
| 44 |
this.VoteValidityPeriodTextBox.Enabled = true; |
| 45 |
} |
| 46 |
else |
| 47 |
{ |
| 48 |
this.VoteValidityPeriodTextBox.Enabled = false; |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
private void VoteValidityPeriodTextBox_ValueChanged(object sender, EventArgs e) |
| 53 |
{ |
| 54 |
GlobalValues.Setting.VoteValidityPeriod = (uint)this.VoteValidityPeriodTextBox.Value; |
| 55 |
} |
| 56 |
} |
| 57 |
} |
|