Beispiel #1
0
        void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            lblDatePlusVieux.Text = plusVieux.ToString();
            lblNombreLogs.Text    = nbLogs.ToString();
            TailleDossier tailleDossier = new TailleDossier(FolderSize(Config.PathData + "/Logs/"));

            lblTailleTotale.Text = tailleDossier.ToString();

            dataGridViewHistoLog.DataSource = dataSet.Tables[0];
            dataGridViewArchives.DataSource = dataSetArchivage.Tables[0];
            progressBar.Visible             = false;
        }
Beispiel #2
0
        public int CompareTo(object obj)
        {
            TailleDossier autre = (TailleDossier)obj;

            if (autre.tailleOctets > tailleOctets)
            {
                return(1);
            }
            if (autre.tailleOctets == tailleOctets)
            {
                return(0);
            }

            return(-1);
        }