예제 #1
0
        public async Task RestoreState(object state)
        {
            SerializableApplication serializableApplication = (SerializableApplication)state;
            Application             application             = serializableApplication.ToApplication();

            this.Title     = application.Title;
            this.Questions = application.Questions;
        }
예제 #2
0
        public object CaptureState()
        {
            SerializableApplication serializableApplication = new SerializableApplication(
                Title,
                Questions
                );

            return(serializableApplication);
        }