public void Respond(TransactionController controller, object state)
 {
     MessageAdapter.CreateAnsHandler(new AnsData()
     {
         AnsType   = CmdMsgHandler.CMD_VOLUME,
         AnsStatus = status,
         AnsValue  = Convert.ToString((int)SystemVolume.GetMasterVolume()),
         AnsMsg    = "音量调节成功",
     })?.Respond(controller, state);
 }
 public void Handle(TransactionController controller, object state)
 {
     if (enable)
     {
         SystemVolume.SetMasterVolume(value);
         if (value == (int)SystemVolume.GetMasterVolume())
         {
             status = true;
         }
         Respond(controller, state);
     }
     Logging.Info("Handle 音量调节");
 }