public void LoadSharedObjects(ref TASListView lv, ref TASMovieInput[] movie, ref UndoBuffer undo, ref frmMessages msg) { lvInput = lv; FrameData = movie; UndoHistory = undo; Msg = msg; }
/// <summary> /// Return the last buffer value and remove it from the collections /// </summary> public static void Undo(ref UndoBuffer buffer) { TASMovieInput[][] temp = new TASMovieInput[buffer.Changes.Length - 1][]; for (int i = 0; i < temp.Length; i++) temp[i] = buffer.Changes[i]; buffer.Changes = temp; }
/// <summary> /// Class constructor. Sets up the common components and controls /// </summary> public frmMain() { InitializeComponent(); frd = new FindReplaceDialog(this); UndoHistory = new UndoBuffer(); this.Text = APP_TITLE + " v" + VERSION; populateRecentFiles(); }
/// <summary> /// Add a frame data collection to the undo buffer /// </summary> public static void Add(ref UndoBuffer buffer, ref TASMovieInput[] change) { TASMovieInput[][] temp = new TASMovieInput[buffer.Changes.Length + 1][]; if (buffer.Changes.Length > 0) buffer.Changes.CopyTo(temp, 0); temp[temp.Length - 1] = new TASMovieInput[change.Length]; change.CopyTo(temp[temp.Length - 1], 0); buffer.Changes = temp; }