Beispiel #1
0
        private void btnRemove_Click(object sender, EventArgs e)
        {
            index           = -1;
            obligationIndex = -1;
            pol.ObligationElementReadWrite obligation = lstObligations.SelectedItem as pol.ObligationElementReadWrite;

            try
            {
                LoadingData = true;

                txtId.Text = string.Empty;

                lstAttributeAssignments.Items.Clear();
                txtAttributeAssignemnt.Text = string.Empty;
                txtAttributeId.Text         = string.Empty;
                _obligations.RemoveAt(lstObligations.SelectedIndex);
                lstObligations.Items.RemoveAt(lstObligations.SelectedIndex);
            }
            finally
            {
                LoadingData = false;
            }
        }