public void getNameDimention(ComboBox cbox) { cbox.Items.Clear(); foreach (Iitem I in item) { Skeths ske = I as Skeths; if (ske != null) { cbox.Items.AddRange(ske.Getlistdimension()); } } if (item.Count != 0 && cbox.Items.Count != 0) { cbox.SelectedIndex = 0; } }
public double getCountDimention(String name) { foreach (Iitem I in item) { Skeths ske = I as Skeths; if (ske != null) { String[] str = ske.Getlistdimension(); for (int i = 0; i < str.Length; i++) { if (name == str[i]) { return(ske.Getcountdimension(name)); } } } } return(0.0); }