private void AllTracksLabel_Click(object sender, EventArgs e) { SongTrackAllChangeTrackForm f = (SongTrackAllChangeTrackForm)InputFormRef.JumpFormLow <SongTrackAllChangeTrackForm>(); f.Init((uint)P4.Value, this.Tracks); DialogResult dr = f.ShowDialog(); if (dr != System.Windows.Forms.DialogResult.Yes) { return; } for (int i = 0; i < this.Tracks.Count; i++) { SongUtil.ChangeTrackAndWrite(this.Tracks[i] , f.GetChangeVoices() , f.GetChangeVol() , f.GetChangePan() , f.GetChangeTempo() , false ); } this.WriteButton.PerformClick(); U.ReSelectList(this.AddressList); }
private void TrackLabel_Click(object sender, EventArgs e) { if (!(sender is Label)) { return; } Label la = (Label)sender; string noString = U.substr(la.Name, 10); int no = (int)U.atoi(noString); if (no <= 0) { return; } no = no - 1; if (no >= Tracks.Count) { return; } SongTrackChangeTrackForm f = (SongTrackChangeTrackForm)InputFormRef.JumpFormLow <SongTrackChangeTrackForm>(); f.Init((uint)P4.Value, this.Tracks[no]); DialogResult dr = f.ShowDialog(); if (dr != System.Windows.Forms.DialogResult.Yes) { return; } SongUtil.ChangeTrackAndWrite(this.Tracks[no] , f.GetChangeVoices() , f.GetChangeVol() , f.GetChangePan() , 0 , f.IsChangeVelocity() ); this.WriteButton.PerformClick(); U.ReSelectList(this.AddressList); }