private void AddFrame(Frame frame, int insertIndex) { UpdatingCurrentFrame = true; Frames.Insert(insertIndex, frame); framesList.Items.Insert(insertIndex, frame.ToListItem(framesList.Font, framesList.Width)); framesList.SelectedIndices.Clear(); UpdatingCurrentFrame = false; framesList.SelectedIndex = insertIndex; }
private void addFrameToReplay(LegacyReplayFrame frame) => Frames.Insert(findInsertionIndex(frame), frame);
/// <summary> /// Adds a frame in the animtion /// </summary> /// <param name="id">ID of the tile</param> /// <param name="index">Position in the animation</param> public void AddFrame(int id, int index) { Frames.Insert(index, id); }