private void toolStripButtonAdd_Click(object sender, EventArgs e) { FormKeysAddEdit frmAddKey = new FormKeysAddEdit(); frmAddKey.ShowDialog(); this.view_keysTableAdapter.Fill(this.accessControlSystemDataSet.View_keys); }
private void toolStripButtonEdit_Click(object sender, EventArgs e) { FormKeysAddEdit frmEditKey = new FormKeysAddEdit(Convert.ToInt32(((DataRowView)this.view_keysBindingSource.Current).Row["ID_key"].ToString()), ((DataRowView)this.view_keysBindingSource.Current).Row["Key_value"].ToString(), Convert.ToInt32(((DataRowView)this.view_keysBindingSource.Current).Row["ID_type"].ToString()), Convert.ToInt32(((DataRowView)this.view_keysBindingSource.Current).Row["ID_status"].ToString())); frmEditKey.ShowDialog(); this.view_keysTableAdapter.Fill(this.accessControlSystemDataSet.View_keys); }