Ejemplo n.º 1
0
        public HelpViewer(string key, Raspored.Tabele.IzborSmera 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);
        }
Ejemplo n.º 2
0
        public static void ShowHelp(string key, Raspored.Tabele.IzborSmera originator)
        {
            HelpViewer hh = new HelpViewer(key, originator);

            hh.Show();
        }