コード例 #1
0
ファイル: editor_window.cs プロジェクト: zmtzawqlp/UIWidgets
        public override IDisposable getScope()
        {
            instance = this;
            if (this._binding == null)
            {
                this._binding = new WidgetsBinding();
            }
            WidgetsBinding.instance = this._binding;

            return(new WindowDisposable(this));
        }
コード例 #2
0
        public override IDisposable getScope() {
            WindowAdapter oldInstance = (WindowAdapter) _instance;
            _instance = this;

            if (this._binding == null) {
                this._binding = new WidgetsBinding();
            }

            SchedulerBinding._instance = this._binding;

            return new WindowDisposable(this, oldInstance);
        }