Example #1
0
        private void PregledResursa_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            WindowResursPregled resurs = new WindowResursPregled(this);

            resurs.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            resurs.ShowDialog();
        }
Example #2
0
        public Help(string key, WindowResursPregled originator)
        {
            InitializeComponent();
            string curDir = Directory.GetCurrentDirectory();
            string path   = String.Format("C:\\Users\\DT User\\Desktop\\AnaTomicHCI1.2AW\\HCIProject1.2\\HCIProject1.2\\HCIProject1.2\\Help\\{0}.htm", key);

            if (!File.Exists(path))
            {
                key = "error";
            }
            Uri u = new Uri(String.Format("C:\\Users\\DT User\\Desktop\\AnaTomicHCI1.2AW\\HCIProject1.2\\HCIProject1.2\\HCIProject1.2\\Help\\{0}.htm", key));

            ch = new JavaScriptControlHelper(originator);
            wbHelp.ObjectForScripting = ch;
            wbHelp.Navigate(u);
        }
Example #3
0
        private void pregledResurs_Click(object sender, RoutedEventArgs e)
        {
            WindowResursPregled novi = new WindowResursPregled(this);

            novi.ShowDialog();
        }
Example #4
0
 public JavaScriptControlHelper(WindowResursPregled w)
 {
     this.prozorTP = w;
 }
Example #5
0
        public static void ShowHelp(string key, WindowResursPregled originator)
        {
            Help hh = new Help(key, originator);

            hh.Show();
        }