public bool getMp3Vol(out byte value) { if (!UTIL.getByte(tbMp3Vol.Text, out value, 0xFF) || ((value > 30) && (value != 0xFF))) { UpdateInfo("音量設定不正確. 可設定 空白, 0-30, 或 255. (空白 / 255 表示音量不變)", UTIL.InfoType.error); return(false); } return(true); }
public bool getMp3Folder(out byte value) { if (!UTIL.getByte(tbMp3Folder.Text, out value, 0xFF)) { UpdateInfo("音量設定不正確. 可設定 空白, 0-255. (空白 / 255 表示根目錄)", UTIL.InfoType.error); return(false); } return(true); }
public bool getMp3File(out byte value, bool allowEmpty) { if (!UTIL.getByte(tbMp3File.Text, out value, allowEmpty, 0xFF)) { UpdateInfo("檔案編號不正確. 請輸入 0-255 的編號.", UTIL.InfoType.error); return(false); } if (!allowEmpty && (value == 0xFF)) { UpdateInfo("請設定檔案編號. 255 預設為不播放.", UTIL.InfoType.alert); return(false); } return(true); }