예제 #1
0
        /// <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);
        }
예제 #2
0
 public static void SetCheckBoxStyle(DependencyObject obj, CheckBoxStyle value)
 {
     obj.SetValue(CheckBoxStyleProperty, value);
 }
예제 #3
0
 public CheckBoxWidget(WidgetGroup parentGroup, CheckBoxStyle style, float x, float y) :
     base(parentGroup, style.Width, style.Height, x, y)
 {
     m_buttonSkin = style.ButtonSkin;
     Enabled      = false;
 }
예제 #4
0
 public CheckBoxWidget(WidgetGroup parentGroup, CheckBoxStyle style, float x, float y)
     : base(parentGroup, style.Width, style.Height, x, y)
 {
     m_buttonSkin = style.ButtonSkin;
     Enabled = false;
 }
예제 #5
0
 public static void SetCheckBoxStyle(CheckBox checkBox, CheckBoxStyle value)
 {
     checkBox.SetValue(CheckBoxStyleProperty, value);
 }