0

有人可以帮助我在 C# 中工作并且我想使用吗?: 操作员。我不需要获取解决方案状态我只需要为冲洗/不冲洗按钮播放不同的声音我的代码是

var status = lSBControl.FlashConfirmButtonOnShowContentTab ? (override)                            
ExecutiveControl.Instance.IVDStateModel.TheIVDInterface.PlaySound(PA.HomeHelp.IVDGlobal.SystemSounds.ButtonClick)
ExecutiveControl.Instance.IVDStateModel.TheIVDInterface.PlaySound(PA.HomeHelp.IVDGlobal.SystemSounds.ButtonNoClick);
                 :  
4

1 回答 1

0

条件运算符只能与具有值(兼容类型)的表达式一起使用。

您需要使用if/ else

于 2013-06-12T14:04:53.933 回答