////Used to autoset the value back to the control. private void CalcQuickValueSet(object sender, QuickValueSetEventArgs e) { if (NameToControlMap.ContainsKey(e.Key)) { Control c = this.NameToControlMap[e.Key] as Control; if (c.GetType() == typeof(TextBox)) { (c as TextBox).Text = e.Value; } else if (c.GetType() == typeof(ComboBox)) { (c as ComboBox).Text = e.Value; } } }