Ejemplo n.º 1
0
        private void about_Click(object sender, RoutedEventArgs e)
        {
            About about = new About();

            about.ShowDialog();
        }
Ejemplo n.º 2
0
        private static IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
        {
            // Check if a System Command has been executed
            if (msg == Win32Api.WM_SYSCOMMAND)
            {
                // Execute the appropriate code for the System Menu item that was clicked
                switch (wParam.ToInt32())
                {
                    case _AboutSysMenuID:
                        handled = true;
                        About about = new About();

                        about.ShowDialog();

                        break;
                }
            }

            return IntPtr.Zero;
        }