/// <summary> /// Calls the last plugin's OnNext method. /// </summary> public void Final(bool save) { if (save) { if (_dataModel.IsDirty && _dataModel.IsValid) { _dataModel.Save(); } else { _dataModel.Cancel(); } } if (_position != _pluginList.Count - 1) { throw new PhuLiException("Final can only be called on the last frame in the wizard plugin list."); } _pluginList[_position].Instance.UnbindDataModel(); _pluginList[_position].Instance.OnNext(); }