コード例 #1
0
        public void enableControlabc()
        {
            IEnumerable <Control> textboxControls  = ViewUtils.GetAllControl(this, typeof(TextBox));
            IEnumerable <Control> checkboxControls = ViewUtils.GetAllControl(this, typeof(CheckBox));
            IEnumerable <Control> comboboxControls = ViewUtils.GetAllControl(this, typeof(ComboBox));

            foreach (Control c in textboxControls)
            {
                ((TextBox)c).ReadOnly = false;
            }
        }