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

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

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

            hh.Show();
        }