Esempio n. 1
0
        private void rightModelessButton_Click(object sender, EventArgs e)
        {
            var wpfWindow = new SimpleWindow();

            ElementHost.EnableModelessKeyboardInterop(wpfWindow);
            wpfWindow.Show();
        }
        private void OpenSaleButton_Click(object sender, RoutedEventArgs e)
        {
            SimpleWindow simpleWindow = new SimpleWindow();
            Sale         vente        = (Sale)SaleDataGrid.SelectedItem;

            simpleWindow.Content = new PopupWindow(vente);
            simpleWindow.Show();
            //Page pg = GetDependencyObjectFromVisualTree(this, typeof(Page)) as Page;
            //Sale vente = (Sale)SaleDataGrid.SelectedItem;
            //pg.NavigationService.Navigate(new PopupWindow(vente));
        }
Esempio n. 3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            CreateMenu();
            LoadIcon();
            simpleWindow = new SimpleWindow();
            Task.Run(() =>
            {
                if (!Ns.Start())
                {
                    MessageBox.Show(@"Startup Failed", @"Error", MessageBoxButton.OK, MessageBoxImage.Error);
                    Exit(false);
                }

                Current.Dispatcher.Invoke(() =>
                {
                    simpleWindow.Show();
                });
            });
        }
Esempio n. 4
0
        private void btnSimpleWindow_Click(object sender, EventArgs e)
        {
            var window = new SimpleWindow();

            window.Show();
        }
    public static void Init()
    {
        SimpleWindow window = GetWindow <SimpleWindow>(false, "Simple Window", true);

        window.Show();
    }
Esempio n. 6
0
        private void wrongModelessWpfButton_Click(object sender, EventArgs e)
        {
            var wpfWindow = new SimpleWindow();

            wpfWindow.Show();
        }