コード例 #1
0
        private void DodajResurs_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            WindowResurs resurs = new WindowResurs();

            resurs.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            resurs.ShowDialog();
        }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
 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();
     }
 }
コード例 #5
0
        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);
        }
コード例 #6
0
        private void dodajResurs_Click(object sender, RoutedEventArgs e)
        {
            WindowResurs novi = new WindowResurs();

            novi.ShowDialog();
        }
コード例 #7
0
 public JavaScriptControlHelper(WindowResurs w)
 {
     this.prozorR = w;
 }
コード例 #8
0
        public static void ShowHelp(string key, WindowResurs originator)
        {
            Help hh = new Help(key, originator);

            hh.Show();
        }