示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="App"/> class.
        /// </summary>
        public App()
        {
            this.InitializeComponent();

            this.baseApp = new BaseSoluiNetUiApp();

            ApplicationContext.Application = this;
        }
 /// <summary>
 /// Set the base app field.
 /// </summary>
 private void SetBaseApp()
 {
     if (this.baseApp == null)
     {
         this.baseApp = ApplicationContext.Application is BaseSoluiNetApp
             ? ApplicationContext.Application as BaseSoluiNetApp
             : (ApplicationContext.Application as IHoldsBaseApp)?.BaseApp;
     }
 }