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

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

            et.ShowDialog();
        }
コード例 #5
0
 public JavaScriptControlHelper(WindowEtiketa w)
 {
     this.prozorE = w;
 }
コード例 #6
0
        public static void ShowHelp(string key, WindowEtiketa originator)
        {
            Help hh = new Help(key, originator);

            hh.Show();
        }