private void Form1_Load(object sender, EventArgs e) { PartsL = new PartsList(); PartNoCombo.DataSource = PartsL.ListParts(); FeetCB.DataSource = cFeet; MinConvCB.DataSource = cConvSpeed; HangerCB.DataSource = cHangers; PartsSelectedCustList.Items.Clear(); PartsUnSelectedCustList.Items.Clear(); ColorsL = new ColorsList(); PartColorCombo.DataSource = ColorsL.ListColors(); Colors c = new Colors(); c = ColorsL.SearchColor(PartColorCombo.SelectedItem.ToString()); powderlbl.Text = c.ColorNumber; if (PartsL.PartExists(PartNoCombo.Text)) { Part p1 = PartsL.SearchPart(PartNoCombo.Text); PartNoCombo.DataSource =PartsL.ListParts(); Object2Form(p1); } }
private void Form1_Load(object sender, EventArgs e) { ColorList = new ColorsList(); comboBox1.DataSource = ColorList.ListColors(); }