Пример #1
0
        public HelpViewer(string key, Raspored.DDrop.PrikaziPredmet originator)
        {
            InitializeComponent();
            string curDir = Directory.GetCurrentDirectory();

            curDir = curDir.Remove(curDir.Count() - 10);
            string path = String.Format("{0}/Help/{1}.htm", curDir, key);

            if (!File.Exists(path))
            {
                key = "error";
            }
            Uri u = new Uri(String.Format("file:///{0}/Help/{1}.htm", curDir, key));

            ch = new JavaScriptControlHelper(originator);
            wbHelp.ObjectForScripting = ch;
            wbHelp.Navigate(u);
        }
Пример #2
0
        public static void ShowHelp(string key, Raspored.DDrop.PrikaziPredmet originator)
        {
            HelpViewer hh = new HelpViewer(key, originator);

            hh.Show();
        }