Esempio n. 1
0
 static void Status(bool show, int count)
 {
     if (syncStatus != null)
     {
         SyncStatus status = new SyncStatus();
         status.Show  = show;
         status.Count = count;
         syncStatus(status);
     }
 }
Esempio n. 2
0
        static void Status(string acao, string objeto, int max, int val, int count)
        {
            if (syncStatus != null)
            {
                SyncStatus status = new SyncStatus();

                status.Acao   = acao;
                status.Atual  = val > max ? max : val;
                status.Total  = max < 0 ? 0 : max;
                status.Objeto = objeto;
                status.Count  = count;

                syncStatus(status);
            }
        }