public static StoryModel Create(IStoryReader reader)
        {
            var model = new StoryModel();

            model.Story = reader.Read();
            return(model.Story != null ? model : null);
        }
        public EntryPointForm(IStoryReader storyReader, IStoryTellerFactory storyTellerFactory)
        {
            if (storyReader == null) throw new ArgumentNullException("storyReader");
            if (storyTellerFactory == null) throw new ArgumentNullException("storyTellerFactory");

            InitializeComponent();

            _storyReader = storyReader;
            _storyTellerFactory = storyTellerFactory;
            SetComponentsVisibility(false);
        }
Beispiel #3
0
 public StoryProvider(IStoryReader reader, IStoryParser parser)
 {
     _reader = reader;
     _parser = parser;
 }
Beispiel #4
0
 public StoryProvider(IStoryReader reader, IStoryParser parser)
 {
     _reader = reader;
     _parser = parser;
 }