Ejemplo n.º 1
0
		public override UndoAction Undo(MainForm form) {
			// Save current state for redo
			UndoVolume redo = new UndoVolume();
			// Update volume
			form.Volume = m_State;
			return redo;
		}
Ejemplo n.º 2
0
		public override UndoAction Undo(MainForm form) {
			// Save current data as redo action
			UndoEdit redo = new UndoEdit();
			// Copy back state saved in constructor
			Program.Album = m_State;
			// Reload file if changed
			form.ReloadFile();
			// Update display
			form.BuildTrackJoins();
			return redo;
		}
Ejemplo n.º 3
0
		public override UndoAction Undo(MainForm form) {
			// Save current data as redo action
			UndoMove redo = new UndoMove();
			// Restore data saved in constructor
			for (int i = 0; i < m_State.Count; i++) {
				Program.Album.Tracks[i].LengthSeconds = m_State[i].LengthSeconds;
				Program.Album.Tracks[i].Gap = m_State[i].Gap;
			}
			// Update display
			form.UpdateTrackJoins();
			return redo;
		}
Ejemplo n.º 4
0
		/// <summary>
		/// Undo this action
		/// </summary>
		/// <param name="form">Main form</param>
		/// <returns>Redo action</returns>
		abstract public UndoAction Undo(MainForm form);
Ejemplo n.º 5
0
		public MainForm() {
			Instance = this;
			m_AlbumDetails = new AlbumDetails();
			m_TrackDetails = new TrackDetails();
			InitializeComponent();
		}