/// <summary> /// Create new series data in the current folder. /// </summary> public void CreateNewSeries() { HandicapProgressMessage progress = new HandicapProgressMessage("New Series Created"); CreateNewSeriesMessage createNew = new CreateNewSeriesMessage(); LoadNewSeriesMessage loadNewMessage = new LoadNewSeriesMessage(); NewSeriesLoadedMessage newLoadedMessage = new NewSeriesLoadedMessage(); Messenger.Default.Send(createNew); Messenger.Default.Send(loadNewMessage); Messenger.Default.Send(newLoadedMessage); Messenger.Default.Send(progress); }
/// <summary> /// Gets a new location and load it. /// </summary> public void LoadNewSeries() { FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.SelectedPath = this.businessLayerManager.ModelRootDirectory; DialogResult result = dialog.ShowDialog(); this.businessLayerManager.SaveRootDirectory(dialog.SelectedPath); LoadNewSeriesMessage loadNewMessage = new LoadNewSeriesMessage(); NewSeriesLoadedMessage newLoadedMessage = new NewSeriesLoadedMessage(); HandicapProgressMessage progress = new HandicapProgressMessage("New Series Loaded"); Messenger.Default.Send(loadNewMessage); Messenger.Default.Send(newLoadedMessage); Messenger.Default.Send(progress); }
/// <summary> /// A load new series command has been completed and the model has been updated. /// Select the current season and let the load trickle through the models. /// </summary> /// <param name="message">load new series message</param> private void NewSeriesLoaded(NewSeriesLoadedMessage message) { this.InitialiseSeasonPane(); }