示例#1
0
        internal static void Clear(Form1 form)
        {
            ToolStripTextBox urlToolStripTextBox = form.urlToolStripTextBox;

            String previuosUrl = urlToolStripTextBox.Text;

            GuideManager.ReplaceHelpWebBrowser(form);

            WebBrowser helpWebBrowser = (WebBrowser)form.splitContainer1.Panel2.Controls["helpWebBrowser"]; //form.helpWebBrowser;

            helpWebBrowser.Url = new Uri(previuosUrl);
        }
示例#2
0
        internal static void OpenGuide(Form1 form)
        {
            OpenFileDialog openFileDialog = form.openFileDialog;

            try
            {
                WindowManager.EnableInterface(form);

                if (openFileDialog.ShowDialog() != DialogResult.OK)
                {
                    WindowManager.DisableInterface(form);
                    return;
                }

                String fileName = openFileDialog.FileName;
                GuideManager.ReadHelpGuide(form, fileName);
            }
            catch (Exception exception)
            {
                WindowManager.DisableInterface(form);
                WindowManager.ShowErrorBox(form, exception.Message, exception, OptionManager.GetLanguage(form));
            }
        }