-
Notifications
You must be signed in to change notification settings - Fork 4
/
Setting.cs
42 lines (38 loc) · 1.21 KB
/
Setting.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Windows.Forms;
namespace Looking4Images
{
public partial class Setting : Form
{
public Setting()
{
InitializeComponent();
}
private void Button_OK_Click(object sender, EventArgs e)
{
string ip = textBox_IP.Text;
string port = textBox_Port.Text;
string username = textBox_Username.Text;
string password = textBox_Password.Text;
string format = textBox_Format.Text;
string cookie = richTextBox1.Text;
int download_type = 0;
if (radioButton2.Checked)
download_type = 1;
SettingItem item = new SettingItem()
{
html = checkBox_Html.Checked,
images = checkBox_Images.Checked,
download_type = download_type,
ip = ip,
port = port,
username = username,
password = password,
format = format,
cookie = cookie
};
MainForm mainForm = (MainForm)this.Owner;
mainForm.Setting(item);
}
}
}