Inheritance: System.Windows.Forms.Form
        private void lnkEditUniqueConstraints_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var dlg       = new UniqueConstraintDialog();
            var dataProps = new List <string>();

            foreach (PropertyDefinition p in _cls.Properties)
            {
                if (p.PropertyType == PropertyType.PropertyType_DataProperty)
                {
                    dataProps.Add(p.Name);
                }
            }
            dlg.PropertyNames = dataProps;
            dlg.Constraints   = _cls.GetUniqueConstraints();
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                //Rebuild unique constraint collection
                _cls.SetUniqueConstraints(dlg.Constraints);
                lstUniqueConstraints.DataSource = dlg.Constraints;
            }
        }
 private void lnkEditUniqueConstraints_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var dlg = new UniqueConstraintDialog();
     var dataProps = new List<string>();
     foreach (PropertyDefinition p in _cls.Properties)
     {
         if (p.PropertyType == PropertyType.PropertyType_DataProperty)
             dataProps.Add(p.Name);
     }
     dlg.PropertyNames = dataProps;
     dlg.Constraints = _cls.GetUniqueConstraints();
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         //Rebuild unique constraint collection
         _cls.SetUniqueConstraints(dlg.Constraints);
         lstUniqueConstraints.DataSource = dlg.Constraints;
     }
 }