public void Apply(UniFields fields) { if (mixedvalues) { return; } string text = (!string.IsNullOrEmpty(textbox.Text) && textbox.Text != DEFAULT_TEXT ? CommentType.Types[commenttype] + textbox.Text : String.Empty); UniFields.SetString(fields, "comment", text, string.Empty); }
private void renderStyle_SelectedIndexChanged(object sender, EventArgs e) { if (preventchanges) { return; } MakeUndo(); //mxd //update values foreach (Thing t in things) { UniFields.SetString(t.Fields, "renderstyle", renderstyles[renderStyle.SelectedIndex], "normal"); } General.Map.IsChanged = true; if (OnValuesChanged != null) { OnValuesChanged(this, EventArgs.Empty); } }