public async Task RestoreState(object state) { SerializableApplication serializableApplication = (SerializableApplication)state; Application application = serializableApplication.ToApplication(); this.Title = application.Title; this.Questions = application.Questions; }
public object CaptureState() { SerializableApplication serializableApplication = new SerializableApplication( Title, Questions ); return(serializableApplication); }