Develop and Download Open Source Software

Browse Subversion Repository

Contents of /TransparentizeWindow/SettingForm.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations) (download)
Tue Apr 16 05:19:23 2013 UTC (10 years, 11 months ago) by yuuan
File size: 1306 byte(s)
- 設定が変更できないバグを修正
- 著作権表示のリンク先を変更
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 using System.Diagnostics;
10
11 namespace TransparentizePutty
12 {
13 public partial class SettingForm : Form
14 {
15 private ApplicationSetting setting;
16
17 public SettingForm(ApplicationSetting setting) {
18 this.setting = setting;
19 InitializeComponent();
20 }
21
22 public ApplicationSetting GetSetting() {
23 return this.setting;
24 }
25
26 private void SettingForm_Load(object sender, EventArgs e) {
27 this.numTransparent.Value = (int)this.setting.alphaValue;
28 this.chkNotTransparentPuttySetting.Checked = this.setting.notTransparentPuttySetting;
29 }
30
31 private void buttonCancel_Click(object sender, EventArgs e) {
32 this.DialogResult = DialogResult.Cancel;
33 this.Close();
34 }
35
36 private void buttonOk_Click(object sender, EventArgs e) {
37 this.setting.alphaValue = (byte)numTransparent.Value;
38 this.setting.notTransparentPuttySetting = chkNotTransparentPuttySetting.Checked;
39 this.DialogResult = DialogResult.OK;
40 this.Close();
41 }
42
43 private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) {
44 Process.Start("http://www.yuuan.net/");
45 }
46 }
47 }

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