public static void SetValue(Control ctrl, object value) { try { CrossThreadUI.SetPropertyValue(ctrl, "Value", value); } catch { throw; } }
public static void SetChecked(Control ctrl, bool value) { try { CrossThreadUI.SetPropertyValue(ctrl, "Checked", value); } catch { throw; } }