protected void ControlsGenerate(IFormConfigurationEditor editor) { TreeNode nodeLanguage = editor.ProcessConfigurationOption(editor.NodesRoot(), ".NET framework binding", LanguageDatatypeFactory.Configuration); TreeNode nodeClassic = editor.ProcessConfigurationOption(editor.NodesRoot(), "Classic", ClassicDatatypeFactory.Configuration); TreeNode nodeQuantum = editor.ProcessConfigurationOption(editor.NodesRoot(), "Quantum", QuantumDatatypeFactory.Configuration); TreeNode nodeNative = editor.ProcessConfigurationOption(editor.NodesRoot(), "Native abstraction", NativeDatatypeFactory.Configuration); editor.NodesFinalize(nodeLanguage); }
private void ControlsGenerate(IFormConfigurationEditor editor) { TreeNode nodeGlobal = editor.ProcessConfigurationOption(editor.NodesRoot(), "Global configuration", RandomnessAlgorithmFactory.Configuration); //TreeNode nodeAlgorithms = ProcessConfigurationOption(editor.NodesRoot(), "Algorithms", null); string[] randomID = RandomnessAlgorithmFactory.CollectAllAlgorithmID(); foreach (string ID in randomID) { editor.ProcessConfigurationOption(nodeGlobal.Nodes, ID, RandomnessAlgorithmFactory.FindAlgorithmInstance(ID).Configuration); } editor.NodesFinalize(nodeGlobal); }
private void ControlsGenerate(IFormConfigurationEditor editor) { //TreeNode nodeGlobal = editor.ProcessConfigurationOption(editor.NodesRoot(), "Global configuration", RandomnessFactory.Configuration); TreeNode nodeClassic = editor.ProcessConfigurationOption(editor.NodesRoot(), "Classic information", ClassicOperatorFactory.Configuration); TreeNode nodeQuantum = editor.ProcessConfigurationOption(editor.NodesRoot(), "Quantum information", QuantumOperatorFactory.Configuration); //editor.ProcessConfigurationOption(nodeClassic,"Noise", string[] classicID = ClassicOperatorFactory.CollectAllAlgorithmID(); foreach (string ID in classicID) { editor.ProcessConfigurationOption(nodeClassic.Nodes, ID, ClassicOperatorFactory.FindAlgorithmInstance(ID).Configuration); } string[] quantumID = QuantumOperatorFactory.CollectAllAlgorithmID(); foreach (string ID in quantumID) { editor.ProcessConfigurationOption(nodeQuantum.Nodes, ID, QuantumOperatorFactory.FindAlgorithmInstance(ID).Configuration); } editor.NodesFinalize(nodeClassic); }