mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-09-11 18:47:19 +03:00
426844bdb1
- 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.
35 lines
908 B
C#
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);
|
|
}
|
|
}
|
|
}
|