private void Label_MouseDown_2(object sender, MouseButtonEventArgs e) { InputForm inForm = new InputForm(); System.Windows.Forms.DialogResult dr = inForm.ShowDialog("Set Resynthesizer"); if (dr == System.Windows.Forms.DialogResult.Yes) { if (System.IO.File.Exists(inForm.Value) && inForm.Value.IndexOf(".exe") != -1) noteRoll.ResynthEngine = inForm.Value; else System.Windows.Forms.MessageBox.Show("The path " + inForm.Value + " is not a valid executable file."); } }
private void Label_MouseDown(object sender, MouseButtonEventArgs e) { InputForm inForm = new InputForm(); System.Windows.Forms.DialogResult dr = inForm.ShowDialog("Set Sample Bank"); if (dr == System.Windows.Forms.DialogResult.Yes) noteRoll.MasterSampleBank = inForm.Value; }