/// <summary>
        /// Handles the Click event of the menuItemPublish control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        /// <remarks>Documented by Dev07, 2009-05-20</remarks>
        private void menuItemPublish_Click(object sender, RoutedEventArgs e)
        {
            if (SettingsManagerLogic.LearningModule == null)
            {
                return;
            }

            string learningModulePath = SettingsManagerLogic.LearningModule.Connection;

            SettingsManagerLogic.ClearUnusedMedia();
            CloseModule();

            PublisherForm publisherForm = new PublisherForm(learningModulePath);

            publisherForm.Owner = this;
            publisherForm.ShowDialog();

            OpenLearningModule(learningModulePath);
        }
Esempio n. 2
0
        /// <summary>
        /// Handles the Click event of the menuItemPublish control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        /// <remarks>Documented by Dev07, 2009-05-20</remarks>
        private void menuItemPublish_Click(object sender, RoutedEventArgs e)
        {
            if (SettingsManagerLogic.LearningModule == null)
                return;

            string learningModulePath = SettingsManagerLogic.LearningModule.Connection;

            SettingsManagerLogic.ClearUnusedMedia();
            CloseModule();

            PublisherForm publisherForm = new PublisherForm(learningModulePath);
            publisherForm.Owner = this;
            publisherForm.ShowDialog();

            OpenLearningModule(learningModulePath);
        }