private void DodajResurs_Executed(object sender, ExecutedRoutedEventArgs e) { WindowResurs resurs = new WindowResurs(); resurs.WindowStartupLocation = WindowStartupLocation.CenterScreen; resurs.ShowDialog(); }
public void Mapa_DoubleClick(object sender, RoutedEventArgs e) { if (NaMapi.SelectedItem is Resurs) { Resurs uv = (Resurs)NaMapi.SelectedItem; WindowResurs w1 = new WindowResurs(uv, this); w1.ShowDialog(); } }
private void Izmijeni_Click(object sender, RoutedEventArgs e) { if ((Resurs)dgrMain.SelectedItem == null) { MessageBox.Show("MORATE SELEKTOVATI RESURS", "UPOZORENJE", MessageBoxButton.OKCancel); } else { Resurs selektovani = (Resurs)dgrMain.SelectedItem; WindowResurs izmjenica = new WindowResurs(selektovani, mains); izmjenica.ShowDialog(); } }
private void Tree_DoubleClick(object sender, RoutedEventArgs e) { if (xTree.SelectedItem is Resurs) { Resurs uv = (Resurs)xTree.SelectedItem; WindowResurs w1 = new WindowResurs(uv, this); w1.ShowDialog(); } else if (xTree.SelectedItem is TipResursa) { TipResursa tv = (TipResursa)xTree.SelectedItem; WindowTip w2 = new WindowTip(tv, this); w2.ShowDialog(); } }
public Help(string key, WindowResurs 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 dodajResurs_Click(object sender, RoutedEventArgs e) { WindowResurs novi = new WindowResurs(); novi.ShowDialog(); }
public JavaScriptControlHelper(WindowResurs w) { this.prozorR = w; }
public static void ShowHelp(string key, WindowResurs originator) { Help hh = new Help(key, originator); hh.Show(); }