private void btnEdit_Click(object sender, EventArgs e)
{
var criteria = (FdoJoinCriteriaInfo)lstJoins.SelectedItem;
var cls = this.SelectedClass;
var schema = (FeatureSchema)cls.Parent;
using (var diag = new FdoJoinDialog(this.Connection, schema.Name, cls.Name, txtClassAlias.Text, criteria))
{
if (diag.ShowDialog() == DialogResult.OK)
{
var items = new System.Collections.ArrayList(lstJoins.Items);
lstJoins.Items.Clear();
lstJoins.Items.AddRange(items.ToArray());
btnEdit.Enabled = btnRemoveJoin.Enabled = false;
}
}
}