protected function lstClassVariable_Create()
 {
     $this->lstClassVariable = new QListBox($this);
     $this->lstClassVariable->Name = QApplication::Translate('Class Variable');
     $this->lstClassVariable->AddItem(QApplication::Translate('- Select One -'), null);
     $objClassVariableArray = ClassVariable::LoadAll();
     if ($objClassVariableArray) {
         foreach ($objClassVariableArray as $objClassVariable) {
             $objListItem = new QListItem($objClassVariable->__toString(), $objClassVariable->Id);
             if ($this->objClassProperty->ClassVariable && $this->objClassProperty->ClassVariable->Id == $objClassVariable->Id) {
                 $objListItem->Selected = true;
             }
             $this->lstClassVariable->AddItem($objListItem);
         }
     }
 }
 protected function lstClassVariable_Create()
 {
     $this->lstClassVariable = new QListBox($this);
     $this->lstClassVariable->Name = QApplication::Translate('Class Variable');
     $this->lstClassVariable->AddItem(QApplication::Translate('- Select One -'), null);
     $objClassVariableArray = ClassVariable::LoadAll();
     if ($objClassVariableArray) {
         foreach ($objClassVariableArray as $objClassVariable) {
             $objListItem = new QListItem($objClassVariable->__toString(), $objClassVariable->Id);
             if ($objClassVariable->VariableId == $this->objVariable->Id) {
                 $objListItem->Selected = true;
             }
             $this->lstClassVariable->AddItem($objListItem);
         }
     }
     // Because ClassVariable's ClassVariable is not null, if a value is already selected, it cannot be changed.
     if ($this->lstClassVariable->SelectedValue) {
         $this->lstClassVariable->Enabled = false;
     }
 }
 protected function dtgClassVariable_Bind()
 {
     // Get Total Count b/c of Pagination
     $this->dtgClassVariable->TotalItemCount = ClassVariable::CountAll();
     $objClauses = array();
     if ($objClause = $this->dtgClassVariable->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     if ($objClause = $this->dtgClassVariable->LimitClause) {
         array_push($objClauses, $objClause);
     }
     $this->dtgClassVariable->DataSource = ClassVariable::LoadAll($objClauses);
 }