コード例 #1
0
        public IDisposable Section()
        {
            DDSubScreen parentSubScreen = DDSubScreenUtils.CurrDrawScreen;

            this.ChangeDrawScreen();
            return(SCommon.GetAnonyDisposable(() => DDSubScreenUtils.ChangeDrawScreen(parentSubScreen)));
        }
コード例 #2
0
        public IDisposable Section()
        {
#if true // ネスト対応
            DDSubScreen parentSubScreen = DDSubScreenUtils.CurrDrawScreen;
            this.ChangeDrawScreen();
            return(SCommon.GetAnonyDisposable(() => DDSubScreenUtils.ChangeDrawScreen(parentSubScreen)));
#else // old -- ネスト未対応
            this.ChangeDrawScreen();
            return(SCommon.GetAnonyDisposable(() => DDSubScreenUtils.RestoreDrawScreen()));
#endif
        }