Beispiel #1
0
        private void LoadRecord()
        {
            var item = _Authorization.GetAttribute(_AttributeKey);

            txtKey.Text   = item.Key;
            txtValue.Text = item.Value;
        }
        private void EditRecord()
        {
            if (lvwAttributes.SelectedItem != null)
            {
                var key   = lvwAttributes.SelectedItem.SubItems[0].Text;
                var value = lvwAttributes.SelectedItem.SubItems[1].Text;
                var index = int.Parse(lvwAttributes.SelectedItem.SubItems[2].Text);
                var item  = _Authorization.GetAttribute(key);

                var edit = new AttributeItem();
                edit.AuthorizationID = _AuthorizationID;
                //edit.AttributeID = item.AttributeId;
                edit.AttributeKey = item.Key;
                edit.Mode         = Mode.Update;
                edit.FormClosed  += AttributeRecord_FormClosed;
                edit.ShowDialog();
            }
        }