Пример #1
0
        /// <summary>
        /// Update fields with data from the SwProperties we receive.
        /// </summary>
        /// <param name="prop">An SwProperties object.</param>
        public void Update(ref SwProperties prop)
        {
            propertySet       = prop;
            configurationName = prop.modeldoc.ConfigurationManager.ActiveConfiguration.Name;
            cd = prop.cutlistData;

            Updte();
            Redbrick.unselect(Controls);
            Redbrick.unselect(tableLayoutPanel1.Controls);
        }
        private void Init()
        {
            cbDepartment.ValueMember           = "TYPEID";
            cbDepartment.DisplayMember         = "TYPEDESC";
            cbDepartment.DataSource            = this.PropertySet.cutlistData.OpTypes.Tables[0];
            cbDepartment.SelectedIndexChanged += cbDepartment_SelectedIndexChanged;

            Selected = new DepartmentSelected(OnSelected);
            Redbrick.unselect(this.Controls);
        }
Пример #3
0
 /// <summary>
 /// Gotta manually unselect programatically selected ComboBoxes. Why? I dunno.
 /// </summary>
 public void unselect()
 {
     Redbrick.unselect(tableLayoutPanel2.Controls);
     Redbrick.unselect(tableLayoutPanel3.Controls);
     Redbrick.unselect(tableLayoutPanel5.Controls);
 }