private void btnAddKey_Click(object sender, EventArgs e)
        {
            if (_primaryClass != null && _secondaryClass != null)
            {
                var featSvc = _edSvc.CurrentConnection.FeatureService;
                var pc      = featSvc.GetClassDefinition(_primaryFeatureSource, _primaryClass);
                var sc      = featSvc.GetClassDefinition(_rel.ResourceId, _secondaryClass);

                var dlg = new SelectJoinKeyDialog(pc, sc);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    var rel = _rel.CreatePropertyJoin(dlg.PrimaryProperty, dlg.SecondaryProperty);
                    _propertyJoins.Add(rel);
                }
            }
        }
示例#2
0
        private void btnAddKey_Click(object sender, EventArgs e)
        {
            if (_primaryClass != null && _secondaryClass != null)
            {
                var pc = _edSvc.FeatureService.GetClassDefinition(_primaryFeatureSource, _primaryClass);
                var sc = _edSvc.FeatureService.GetClassDefinition(_rel.ResourceId, _secondaryClass);

                var dlg = new SelectJoinKeyDialog(pc, sc);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    var rel = _rel.CreatePropertyJoin(dlg.PrimaryProperty, dlg.SecondaryProperty);
                    _propertyJoins.Add(rel);
                }
            }
        }