forked from Violet-CLM/MLLE
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlusProperties.cs
More file actions
40 lines (35 loc) · 955 Bytes
/
Copy pathPlusProperties.cs
File metadata and controls
40 lines (35 loc) · 955 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
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MLLE
{
public partial class PlusProperties : Form
{
PlusPropertyList? result = null;
public PlusProperties()
{
InitializeComponent();
}
public PlusPropertyList? ShowForm(ref PlusPropertyList current)
{
propertyGrid1.SelectedObject = new PlusPropertyList(current);
ShowDialog();
return result;
}
private void ButtonOK_Click(object sender, EventArgs e)
{
//do I need to do any validation here?
result = (PlusPropertyList)propertyGrid1.SelectedObject;
Dispose();
}
private void ButtonCancel_Click(object sender, EventArgs e)
{
Dispose();
}
}
}