コード例 #1
0
ファイル: InPlaceEditor.cs プロジェクト: xydoublez/RDO.Net
        private void Cleanup(IProxyScalarInput proxyScalarInput)
        {
            if (proxyScalarInput == null)
            {
                return;
            }

            if (EditorElement != null)
            {
                proxyScalarInput.EditorBinding.Cleanup(EditorElement);
                EditorElement = null;
            }
            else if (InertElement != null)
            {
                proxyScalarInput.InertBinding.Cleanup(InertElement);
                InertElement = null;
            }
        }
コード例 #2
0
ファイル: InPlaceEditor.cs プロジェクト: xydoublez/RDO.Net
        private void Setup(IProxyScalarInput proxyScalarInput, int flowIndex)
        {
            if (proxyScalarInput == null)
            {
                return;
            }

            if (IsEditing)
            {
                InertElement  = null;
                EditorElement = GenerateElement(proxyScalarInput.EditorBinding, flowIndex);
                DataPresenter?.GetService <IChildInitializer>()?.InitializeEditorElement(this);
            }
            else
            {
                EditorElement = null;
                InertElement  = GenerateElement(proxyScalarInput.InertBinding, flowIndex);
                DataPresenter?.GetService <IChildInitializer>()?.InitializeInertElement(this);
            }
            InvalidateMeasure();
        }