Exemplo n.º 1
0
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            FormKeysAddEdit frmAddKey = new FormKeysAddEdit();

            frmAddKey.ShowDialog();
            this.view_keysTableAdapter.Fill(this.accessControlSystemDataSet.View_keys);
        }
Exemplo n.º 2
0
        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);
        }