コード例 #1
0
        public void ApplyConfig()
        {
            if (Projector == null)
            {
                return;
            }
            GridProgram.Echo($"Applying ProjectorState {ProjectorState} to the projector...");
            switch (ProjectorState)
            {
            case ProjectorState.Powered:
                Projector.ApplyAction("OnOff_On");
                break;

            case ProjectorState.Unpowered:
                Projector.ApplyAction("OnOff_Off");
                break;
            }
        }
コード例 #2
0
 void AssembleMissing()
 {
     _projector.CustomData = _productionAssemblerName;
     _projector.ApplyAction("AssembleMissing");
     _projector.CustomData = "";
 }