public void SetStatusByEmt(bool xstatus, int EMTInTeam) { Status[EMTInTeam] = xstatus; int temp = 0; for (int a = 0; a < 5; a++) { if (Status[a] == true) { temp++; } } emtnum = temp; if (temp >= 3 && TeamStatus != "Dispatched") { TeamStatus = "Available"; } else if (temp < 3) { TeamStatus = "Non-Available"; } Team_Updated?.Invoke(this, null); }
public void SetStatusByDispatch(string xstatus) { TeamStatus = xstatus; Team_Updated?.Invoke(this, null); }