Esempio n. 1
0
        private void OnDialogShow(object sender, RoutedEventArgs e)
        {
            var form = new ToHostForm();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                MessageBox.Show("You clicked OK.");
            }
        }
Esempio n. 2
0
        private void OnModallyShow(object sender, RoutedEventArgs e)
        {
            var form = new ToHostForm();

            form.Show();
        }