Change projects to .net 6.0

This commit is contained in:
luosheng
2023-02-11 09:52:13 +08:00
parent 30a8b54245
commit 371ee48a7b
506 changed files with 337 additions and 112340 deletions

View File

@@ -1,32 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public enum LightLamp{Red,Yellow,Green}
namespace CrossLampControl.WebApi.Models
{
public class Lamp
{
public string MainLamp { get; set; }
public string SubLamp { get; set; }
public string StartPause { get; set; }
public Lamp()
{
MainLamp = LightLamp.Red.ToString();
SubLamp = LightLamp.Red.ToString();
}
public void SetLamp(LightLamp mLamp, LightLamp sLamp)
{
MainLamp = mLamp.ToString();
SubLamp = sLamp.ToString();
}
public void SetStart(bool isStart)
{
StartPause = isStart ? "Start" : "Pause";
}
}
}