private void InitDBControls() { SerialSearchTextBox.SetDBInfo(DevicesCols.Serial); AssetTagSearchTextBox.SetDBInfo(DevicesCols.AssetTag); DescriptionTextBox.SetDBInfo(DevicesCols.Description); EquipTypeComboBox.SetDBInfo(DevicesCols.EQType, Attributes.DeviceAttributes.EquipType); ReplaceYearTextBox.SetDBInfo(DevicesCols.ReplacementYear); OSTypeComboBox.SetDBInfo(DevicesCols.OSVersion, Attributes.DeviceAttributes.OSType); LocationComboBox.SetDBInfo(DevicesCols.Location, Attributes.DeviceAttributes.Locations); CurrrentUserTextBox.SetDBInfo(DevicesCols.CurrentUser); StatusComboBox.SetDBInfo(DevicesCols.Status, Attributes.DeviceAttributes.StatusType); TrackablesCheckBox.SetDBInfo(DevicesCols.Trackable); }
private void Clear_All() { AssetTagTextBox.Clear(); AssetTagSearchTextBox.Clear(); SerialTextBox.Clear(); SerialSearchTextBox.Clear(); CurrrentUserTextBox.Clear(); DescriptionTextBox.Clear(); ReplaceYearTextBox.Clear(); TrackablesCheckBox.Checked = false; HistoricalCheckBox.Checked = false; RefreshCombos(); }