Ejemplo n.º 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            AddChangesToStory();
            if (_isNewStory)
            {
                _storyContainer.AddStory(_story);
            }
            else
            {
                _storyContainer.UpdateStory(_story);
            }

            this.Close();
        }
Ejemplo n.º 2
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            try
            {
                _wdcStoryContainer.AddStory(_story);
            }
            catch (ArgumentException ex)
            {
                _log.Warn("", ex);

                ShowError("Error adding story", "An error occurred while trying to add the story. Have you already added this story?", ex);
                return;
            }
            catch (Exception ex)
            {
                _log.Warn("", ex);

                ShowError("Error adding story", "An error occurred while trying to add the story.", ex);
                return;
            }

            this.Close();
        }