static void Status(bool show, int count) { if (syncStatus != null) { SyncStatus status = new SyncStatus(); status.Show = show; status.Count = count; syncStatus(status); } }
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); } }