Esempio n. 1
0
        private void SongTrackImportMidiForm_Load(object sender, EventArgs e)
        {
            if (!HasNIMAP())
            {
                HowDoYouLikePatchForm.CheckAndShowPopupDialog(HowDoYouLikePatchForm.TYPE.NIMAP_By_SongTrack);
                PickupInstrument();
            }
            if (OptionForm.GetMidfix4agb() == "")
            {
                UseMidfix4agb_checkBox.Hide();
                WARNING_midfix4agb_label.Show();
            }
            else
            {
                WARNING_midfix4agb_label.Hide();
                UseMidfix4agb_checkBox.Show();
            }

            if (MainFormUtil.CanUseMID2AGB())
            {     //mid2agbを利用できる.
                if (OptionForm.midi_importer() == OptionForm.midi_importer_enum.MID2AGB)
                { //mid2agbがディフォルト
                    this.tabControl1.SelectedIndex = 1;
                }
            }
            else
            {//mid2agbを利用できない.
                Explain_mid2agb.Text           = R._("mid2agbが設定されていません。\r\n設定画面より、mid2agbの設定をしてください。");
                Mid2AGBOKButton.Enabled        = false;
                this.tabControl1.SelectedIndex = 0;
            }
            Mid2agbV.Value = 80;
            //Mid2agbR.SelectedIndex = 0;
        }
Esempio n. 2
0
        private void SongTrackImportMidiForm_Load(object sender, EventArgs e)
        {
            if (OptionForm.GetMidfix4agb() == "")
            {
                UseMidfix4agb_checkBox.Checked = false;
                UseMidfix4agb_checkBox.Hide();
                WARNING_midfix4agb_label.Show();
            }
            else
            {
                UseMidfix4agb_checkBox.Checked = true;
                WARNING_midfix4agb_label.Hide();
                UseMidfix4agb_checkBox.Show();
            }

            Mid2agbV.Value = 80;
            if (OptionForm.IsUsingMidi2agb())
            {
                Mid2agbV.Maximum            = 128;
                Mid2agbV.Value              = 128;
                UseMidi2agb_modsc_Nud.Value = 8;
                UseMidi2agb_modsc_Nud.Show();
                UseMidi2agb_modsc_checkBox.Show();
                UseMidi2agb_modsc_checkBox.Checked = true;
            }
            else
            {
                UseMidi2agb_modsc_Nud.Value = 0;
                UseMidi2agb_modsc_Nud.Hide();
                UseMidi2agb_modsc_checkBox.Hide();
                UseMidi2agb_modsc_checkBox.Checked = false;
            }

            if (MainFormUtil.CanUseMID2AGB())
            {     //mid2agbを利用できる.
                if (OptionForm.midi_importer() == OptionForm.midi_importer_enum.MID2AGB)
                { //mid2agbがディフォルト
                    this.tabControl1.SelectedIndex = 1;
                }
            }
            else
            {//mid2agbを利用できない.
                Explain_mid2agb.Text           = R._("mid2agbが設定されていません。\r\n設定画面より、mid2agbの設定をしてください。");
                Mid2AGBOKButton.Enabled        = false;
                this.tabControl1.SelectedIndex = 0;
            }
        }