forked from dgis/xsddiagram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SettingsForm.cs
34 lines (30 loc) · 908 Bytes
/
SettingsForm.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using XSDDiagram.Properties;
namespace XSDDiagram
{
public partial class SettingsForm : Form
{
public SettingsForm()
{
InitializeComponent();
}
private void SettingsForm_Load(object sender, EventArgs e)
{
this.propertyGrid1.SelectedObject = Settings.Default;
}
private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
{
this.propertyGrid1.SelectedObject = null;
}
private void propertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
MainForm.Form.ChangeSetting(e.ChangedItem.PropertyDescriptor.Name);
}
}
}