Beispiel #1
0
        // UPGRADE_WARNING: イベント txtMP3Volume.TextChanged は、フォームが初期化されたときに発生します。 詳細については、'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"' をクリックしてください。
        private void txtMP3Volume_TextChanged(object eventSender, EventArgs eventArgs)
        {
            var    IsMP3Supported = default(object);
            string argexpr        = txtMP3Volume.Text;

            Sound.MP3Volume   = (short)GeneralLib.StrToLng(ref argexpr);
            txtMP3Volume.Text = argexpr;
            if (Sound.MP3Volume < 0)
            {
                Sound.MP3Volume   = 0;
                txtMP3Volume.Text = "0";
            }
            else if (Sound.MP3Volume > 100)
            {
                Sound.MP3Volume   = 100;
                txtMP3Volume.Text = "100";
            }

            hscMP3Volume.Value = Sound.MP3Volume;

            // UPGRADE_WARNING: オブジェクト IsMP3Supported の既定プロパティを解決できませんでした。 詳細については、'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' をクリックしてください。
            if (Conversions.ToBoolean(IsMP3Supported))
            {
                VBMP3.vbmp3_setVolume(Sound.MP3Volume, Sound.MP3Volume);
            }
        }
Beispiel #2
0
        // UPGRADE_NOTE: hscMP3Volume.Scroll はイベントからプロシージャに変更されました。 詳細については、'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="4E2DC008-5EDA-4547-8317-C9316952674F"' をクリックしてください。
        private void hscMP3Volume_Scroll_Renamed(int newScrollValue)
        {
            var IsMP3Supported = default(object);

            Sound.MP3Volume   = (short)newScrollValue;
            txtMP3Volume.Text = Microsoft.VisualBasic.Compatibility.VB6.Support.Format(Sound.MP3Volume);
            // UPGRADE_WARNING: オブジェクト IsMP3Supported の既定プロパティを解決できませんでした。 詳細については、'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' をクリックしてください。
            if (Conversions.ToBoolean(IsMP3Supported))
            {
                VBMP3.vbmp3_setVolume(Sound.MP3Volume, Sound.MP3Volume);
            }
        }
Beispiel #3
0
        // キャンセルボタンが押された
        private void cmdCancel_Click(object eventSender, EventArgs eventArgs)
        {
            var IsMP3Supported = default(object);

            // ダイアログを閉じる
            Hide();

            // MP3音量のみその場で変更しているので元に戻す必要がある
            Sound.MP3Volume = SavedMP3Volume;
            // UPGRADE_WARNING: オブジェクト IsMP3Supported の既定プロパティを解決できませんでした。 詳細については、'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' をクリックしてください。
            if (Conversions.ToBoolean(IsMP3Supported))
            {
                VBMP3.vbmp3_setVolume(Sound.MP3Volume, Sound.MP3Volume);
            }
        }