Exemplo n.º 1
0
 public static void Show(object target, Action onChanged)
 {
     if (instance == null) instance = new PropertiesForm();
     instance.onChanged = null;
     instance.propertyGrid1.SelectedObject = target;
     instance.onChanged = onChanged;
     instance.Show();
 }
Exemplo n.º 2
0
 private void PropertiesForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }