-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm2.cs
More file actions
31 lines (27 loc) · 724 Bytes
/
Form2.cs
File metadata and controls
31 lines (27 loc) · 724 Bytes
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
using System;
using System.Windows.Forms;
namespace JavaPropertiesDemo
{
public partial class Form2 : Form
{
public String EntryName { get; set; }
public string EntryValue { get; set; }
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
textBox1.Text = EntryName;
textBox2.Text = EntryValue;
}
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
if (DialogResult == DialogResult.OK)
{
EntryName = textBox1.Text;
EntryValue = textBox2.Text;
}
}
}
}