예제 #1
0
        private void GenerateHelps(GenerateHelpsForm.GenerationType generationType)
        {
            // make sure that all of the files are saved
            foreach (Form form in MdiChildren)
            {
                if (form is TextEditForm)
                {
                    if (!((TextEditForm)form).IsFileReady())
                    {
                        return;
                    }
                }
            }

            try
            {
                _helpComponents.preprocessor.Refresh();

                GenerateHelpsForm dlg = new GenerateHelpsForm(_helpComponents, generationType);
                dlg.ShowDialog();
            }

            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }
예제 #2
0
 private void GenerateHelps(bool generateAndClose)
 {
     GenerateHelpsForm dlg = new GenerateHelpsForm(_helpComponents,generateAndClose);
     dlg.ShowDialog();
 }