public string GetState(int numberSwitch) { string parameter = NetFrameworkCommands.TypeCommand.Get_State; string resultCommand = Utility.MountingCommand.MountCommand(nameClass, parameter, numberSwitch); using (Supervisory.WS.Service1Client service = new Supervisory.WS.Service1Client()) { string result = service.GetStatusSwitch(resultCommand); return(result); } }
public string Off(int part) { string parameter = NetFrameworkCommands.TypeCommand.Off; string command = Utility.MountingCommand.MountCommand(nameClass, parameter, part); using (Supervisory.WS.Service1Client service = new Supervisory.WS.Service1Client()) { string result = service.PressButtonRele(command); return(result); } }