コード例 #1
0
 private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
 {
     image_match.startup_help.startup_help wnd = Window.GetWindow(this) as image_match.startup_help.startup_help;
     wnd.navigate(e.Uri.ToString());
     e.Handled = true;
     return;
 }
コード例 #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            windowHandle = new System.Windows.Interop.WindowInteropHelper(this as Window).Handle;

            /*Dispatcher.Invoke(new Action(() =>
             * {
             *  Keyboard.Focus(resources_tab_item as UIElement);
             *  resources_tab_item.Focus();
             *  Keyboard.Focus(r_ui as UIElement);
             *  r_ui.Focus();
             * }),System.Windows.Threading.DispatcherPriority.ApplicationIdle);*/

            Style _style = null;

            if (Microsoft.Windows.Shell.SystemParameters2.Current.IsGlassEnabled == true)
            {
                _style = (Style)Resources["GadgetStyle"];
            }
            this.Style   = _style;
            login_window = new login();
            login_window.ShowDialog();
            if (!(login_window.DialogResult.HasValue && login_window.DialogResult.Value))
            {
                this.Close();
            }
            if (Convert.ToInt32(MyIni.Read("show_startup_help")) == 1)
            {
                start_help       = new startup_help.startup_help(help_win);
                start_help.Owner = this;
                Dispatcher.BeginInvoke(new Action(delegate
                {
                    start_help.Show();
                }), System.Windows.Threading.DispatcherPriority.Background, null);
            }
        }