コード例 #1
0
        private void SelectFunction()
        {
            var functionSelector = _owner.GetService <IFunctionSelector>();

            if (functionSelector == null)
            {
                functionSelector = new DefaultFunctionSelector(_owner);
            }

            var selectedFunction = functionSelector.SelectFunction(_model.FunctionId);

            if (selectedFunction != null)
            {
                SelectFunction(selectedFunction);
                _owner.MarkDirty();
            }
        }
コード例 #2
0
        private void SelectFunction()
        {
            var functionSelector = _owner.GetService<IFunctionSelector>();

            if (functionSelector == null)
            {
                functionSelector = new DefaultFunctionSelector(_owner);
            }

            var selectedFunction = functionSelector.SelectFunction(_model.FunctionId);

            if (selectedFunction != null)
            {
                SelectFunction(selectedFunction);
                _owner.MarkDirty();
            }
        }