示例#1
0
        private void comboBox_clusterType_SelectedIndexChanged(object sender, EventArgs e)
        {
            // initial setting for an existing configuration
            if (this.config != null)
            {
                return;
            }

            this.RemoveAddedProperties();
            var type = (ClusterConfiguration.ClusterType)Enum.Parse(typeof(ClusterConfiguration.ClusterType), this.comboBox_clusterType.Text);

            this.config = ClusterConfiguration.CreateConfiguration(type);
            this.AddPropertiesToEdit(this.config.ExtractData().Properties);
        }
示例#2
0
        private void comboBox_clusterType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!this.canChangeType)
            {
                // we are just editing the cluster properties
                return;
            }

            this.RemoveAddedProperties();
            var type = (ClusterConfiguration.ClusterType)Enum.Parse(typeof(ClusterConfiguration.ClusterType), this.comboBox_clusterType.Text);

            this.config = ClusterConfiguration.CreateConfiguration(type);
            var serialization = this.config.ExtractData();

            this.AddPropertiesToEdit(serialization.Properties);
        }