protected function AddListItem()
{
// First off, let's make sure that data was typed in
if (!strlen(trim($this->txtItem->Text))) {
$this->txtItem->Warning = 'Nothing was entered';
} else {
// Add the new item
$this->lstListbox->AddItem(trim($this->txtItem->Text), trim($this->txtItem->Text));
}
// Clear the textbox
$this->txtItem->Text = '';
// Let's re-enable all the controls;
$this->txtItem->Enabled = true;
$this->lstListbox->Enabled = true;
$this->btnAdd->Enabled = true;
}