/// <summary> /// 체크박스 설정 /// </summary> /// <param name="ck"></param> /// <returns></returns> private RepositoryItemCheckEdit SetCheckBoxStyle(RepositoryItemCheckEdit ck, CheckBoxStyle style) { ck.CheckStyle = DevExpress.XtraEditors.Controls.CheckStyles.Style4; ck.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; string strChecked = "Y"; string strUnChecked = "N"; switch (style) { case CheckBoxStyle.StyleBit: strChecked = "1"; strUnChecked = "0"; break; } ck.ValueChecked = strChecked; ck.ValueUnchecked = strUnChecked; return(ck); }
public static void SetCheckBoxStyle(DependencyObject obj, CheckBoxStyle value) { obj.SetValue(CheckBoxStyleProperty, value); }
public CheckBoxWidget(WidgetGroup parentGroup, CheckBoxStyle style, float x, float y) : base(parentGroup, style.Width, style.Height, x, y) { m_buttonSkin = style.ButtonSkin; Enabled = false; }
public static void SetCheckBoxStyle(CheckBox checkBox, CheckBoxStyle value) { checkBox.SetValue(CheckBoxStyleProperty, value); }