Esempio n. 1
0
 public KzPropertiesGridDialog(IPropertiesSettings settings, Icon icon = null, string text = null) : this()
 {
     Settings = settings;
     if (icon != null)
     {
         Icon = icon;
     }
     if (text != null)
     {
         Text = text;
     }
 }
Esempio n. 2
0
        private void PropertiesDialog_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (settings == null || !(settings is IPropertiesSettings))
            {
                return;
            }
            IPropertiesSettings s = settings as IPropertiesSettings;

            if (DialogResult != DialogResult.OK)
            {
                s.Reload();
            }
            else
            {
                s.Save();
            }
        }