Exemple #1
0
        private DataGridViewModel <Dictionary <string, object> > GetDataList()
        {
            DataGridViewModel <Dictionary <string, object> > dataGridViewModel = new DataGridViewModel <Dictionary <string, object> >();
            DataTable backupFiles = StoreHelper.GetBackupFiles();

            if (backupFiles != null && backupFiles.Rows != null && backupFiles.Rows.Count > 0)
            {
                backupFiles.DefaultView.Sort = "BackupTime DESC";
                backupFiles             = backupFiles.DefaultView.ToTable();
                dataGridViewModel.rows  = DataHelper.DataTableToDictionary(backupFiles);
                dataGridViewModel.total = backupFiles.Rows.Count;
            }
            return(dataGridViewModel);
        }
Exemple #2
0
 private void BindBackupData()
 {
     this.grdBackupFiles.DataSource = StoreHelper.GetBackupFiles();
     this.grdBackupFiles.DataBind();
 }