private void DodajEtiketu_Executed(object sender, ExecutedRoutedEventArgs e) { WindowEtiketa resurs = new WindowEtiketa(); resurs.WindowStartupLocation = WindowStartupLocation.CenterScreen; resurs.ShowDialog(); }
private void izmijeni_Click(object sender, RoutedEventArgs e) { if ((Etiketa)dgrMainEtiketa.SelectedItem == null) { MessageBox.Show("MORA SE SELEKTOVATI ETIKETA", "UPOZORENJE", MessageBoxButton.OKCancel); } else { Etiketa selektovana = (Etiketa)dgrMainEtiketa.SelectedItem; WindowEtiketa izmjena = new WindowEtiketa(selektovana); izmjena.ShowDialog(); } }
public Help(string key, WindowEtiketa 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 dodajEtiketu_Click(object sender, RoutedEventArgs e) { WindowEtiketa et = new WindowEtiketa(); et.ShowDialog(); }
public JavaScriptControlHelper(WindowEtiketa w) { this.prozorE = w; }
public static void ShowHelp(string key, WindowEtiketa originator) { Help hh = new Help(key, originator); hh.Show(); }