コード例 #1
0
void DataSetValues::ApplyInputDataClass(DataClass* dc)
{
   if (dc && dc->IsDataSet())
   {
      Block::ApplyInputDataClass(dc);
      DataSet* buf = static_cast<DataSet*>(dc);
      if (SetDataSet(buf) == true)
      {
         Refresh();
         //try to load data by default if we can
         //do this after the parameters updated sets up all our rows/counts/etc.
         if (buf->GetHasData() && buf->CanRefreshData())
         {
            RefreshData();
         }
      }
   }
}