Sector var1=Sector.SectorI;int value=(int)var1;value+=1;if(value>(int)Sector.SecotrIII) value=0;var1=(Sector)value;