示例#1
0
        // ###############################################################################
        // ### D E S T R U C T I O N
        // ###############################################################################

        #region Destruction

        #endregion

        // ###############################################################################
        // ### P R O P E R T I E S
        // ###############################################################################

        #region Properties

        #endregion

        // ###############################################################################
        // ### M E T H O D S
        // ###############################################################################

        #region Methods

        /// <summary> Run the message box modal. </summary>
        /// <returns> The pressed button. <see cref="XrwDialogShell.Result"/> </returns>
        /// <remarks> To use the message box non-modal register at least event handler to WmShellClose and to DialogShellEnd and call Show(). </remarks>
        public XrwDialogShell.Result Run()
        {
            this.Show();

            // Take over the event loop processing.
            while (_result == XrwDialogShell.Result.None)
            {
                ApplicationShell.DoEvent();
            }

            return(_result);
        }
示例#2
0
 public Tests()
 {
     ApplicationShell.InitServices(new InitializationContainerExtension());
     Container = ServiceLocator.Current.GetInstance <IUnityContainer>();
 }