예제 #1
0
 public static (DialogResult DialogResult, double NewBpm, int BarIndex, int RowIndex) VariantBpmRequestInput(IWin32Window parent, Score score)
 {
     using (var f = new FSpecialNote()) {
         f._bpm   = 0;
         f._score = score;
         f.FillMeasureComboBox();
         f.CboMeasures_SelectedIndexChanged(f, EventArgs.Empty);
         f.Localize(LanguageManager.Current);
         f.MonitorLocalizationChange();
         var r = f.ShowDialog(parent);
         f.UnmonitorLocalizationChange();
         var bpm      = f._bpm;
         var barIndex = f._barIndex;
         var row      = f._rowIndex;
         return(r, bpm, barIndex, row);
     }
 }
예제 #2
0
 public static (DialogResult DialogResult, double NewBpm) VariantBpmRequestInput(IWin32Window parent, int barIndex, int rowIndex, double originalBpm = 0)
 {
     using (var f = new FSpecialNote()) {
         f._bpm = originalBpm;
         f.SetManualSelection(false);
         f.cboMeasures.Items.Add((barIndex + 1).ToString());
         f.cboMeasures.SelectedIndex = 0;
         f.cboRows.Items.Add((rowIndex + 1).ToString());
         f.cboRows.SelectedIndex = 0;
         f.Localize(LanguageManager.Current);
         f.MonitorLocalizationChange();
         var r = f.ShowDialog(parent);
         f.UnmonitorLocalizationChange();
         var bpm = f._bpm;
         return(r, bpm);
     }
 }