1
1
mirror of https://github.com/dgis/xsddiagram.git synced 2024-09-11 18:47:19 +03:00
xsddiagram/SettingsForm.cs
dgis 426844bdb1 - Add the type in the diagram with all occurences with a compact layout (from Andreas Eidmann https://github.com/dgis/xsddiagram/pull/14)
- Add a new settings windows with the options to show the type in the diagram, to show all the occurences, and to a compact layout.
2019-11-08 23:16:34 +01:00

35 lines
908 B
C#

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);
}
}
}