public ShareRunDialog(LiveSplitState state, ISettings settings, Func <Image> screenShotFunction) { State = state; if (State.CurrentPhase != TimerPhase.Ended) { Run = state.Run; } else { var model = new TimerModel(); model.CurrentState = State; model.SetRunAsPB(); Run = State.Run; } ScreenShotFunction = screenShotFunction; Settings = settings; InitializeComponent(); }