Exemple #1
0
        private void cmiRelationshipNew_Click(object sender, EventArgs e)
        {
            var f = new frmTableRelationship();

            f.FromTableName = _tableName;
            f.FromTableID   = this.ID;
            f.ID            = 0;
            if (DialogResult.OK == MainFormPopupForm(f, this, true))
            {
                RefreshData();
                MainFormUpdateStatus(getDisplayMember("addRelationship{done}", "Added new relationship to {0}", _tableName), true);
            }
        }
Exemple #2
0
 private void showPropertiesRelationship()
 {
     if (lvRelationships.SelectedIndices.Count == 1)
     {
         var f = new frmTableRelationship();
         f.ID            = Toolkit.ToInt32(lvRelationships.SelectedItems[0].Tag, -1);
         f.FromTableID   = this.ID;
         f.FromTableName = _tableName;
         if (MainFormPopupForm(f, this, false) == DialogResult.OK)
         {
             RefreshData();
             MainFormUpdateStatus(getDisplayMember("saveRelationship{done}", "Saved relationship changes to {0}", _tableName), true);
         }
     }
 }