예제 #1
0
            private Control CreateCheckBox(object value, PropertyInfo property)
            {
                STCheckBox control = new STCheckBox();

                control.AutoSize = true;
                control.Size     = new System.Drawing.Size(65, 17);
                control.UseVisualStyleBackColor = true;
                control.Text = "";
                control.Bind(value, property.Name);
                return(control);
            }
예제 #2
0
            private Control CreateCheckBox(Controls.Checkbox checkBox)
            {
                STCheckBox control = new STCheckBox();

                control.AutoSize = true;
                control.Size     = new System.Drawing.Size(65, 17);
                control.UseVisualStyleBackColor = true;
                control.Text    = checkBox.Text;
                control.Enabled = checkBox.Enabled;
                control.Visible = checkBox.Visible;
                control.Bind(checkBox, "Checked");
                return(control);
            }