private void PregledEtiketa_Executed(object sender, ExecutedRoutedEventArgs e) { WindowEtiketaPregled resurs = new WindowEtiketaPregled(); resurs.WindowStartupLocation = WindowStartupLocation.CenterScreen; resurs.ShowDialog(); }
public Help(string key, WindowEtiketaPregled 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); }
private void pregledEtiketa_Click(object sender, RoutedEventArgs e) { WindowEtiketaPregled et = new WindowEtiketaPregled(); et.ShowDialog(); }
public JavaScriptControlHelper(WindowEtiketaPregled w) { this.prozorTPE = w; }
public static void ShowHelp(string key, WindowEtiketaPregled originator) { Help hh = new Help(key, originator); hh.Show(); }