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); }
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); }