protected function lstInterface_Create()
 {
     $this->lstInterface = new QListBox($this);
     $this->lstInterface->Name = QApplication::Translate('Interface');
     $this->lstInterface->AddItem(QApplication::Translate('- Select One -'), null);
     $objInterfaceArray = QcodoInterface::LoadAll();
     if ($objInterfaceArray) {
         foreach ($objInterfaceArray as $objInterface) {
             $objListItem = new QListItem($objInterface->__toString(), $objInterface->Id);
             if ($this->objQcodoClass->Interface && $this->objQcodoClass->Interface->Id == $objInterface->Id) {
                 $objListItem->Selected = true;
             }
             $this->lstInterface->AddItem($objListItem);
         }
     }
 }
 public function dtgQcodoInterface_Bind()
 {
     // Get Total Count b/c of Pagination
     $this->dtgQcodoInterface->TotalItemCount = QcodoInterface::CountAll();
     $objClauses = array();
     if ($objClause = $this->dtgQcodoInterface->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     if ($objClause = $this->dtgQcodoInterface->LimitClause) {
         array_push($objClauses, $objClause);
     }
     $this->dtgQcodoInterface->DataSource = QcodoInterface::LoadAll($objClauses);
 }