コード例 #1
0
 private void btnAddJoin_Click(object sender, EventArgs e)
 {
     var cls = this.SelectedClass;
     var schema = (FeatureSchema)cls.Parent;
     using (var diag = new FdoJoinDialog(this.Connection, schema.Name, cls.Name, txtClassAlias.Text))
     {
         if (diag.ShowDialog() == DialogResult.OK)
         {
             lstJoins.Items.Add(diag.Criteria);
         }
     }
 }
コード例 #2
0
 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;
         }
     }
 }