private void SetComboBox() { AllLabels = LabelData.GetAllLabel(); List <string> label = AllLabels.DynamicLabel.Union(AllLabels.StaticLabel).OrderBy(t => t.Id).Select(t => t.Id + ":" + t.Name).ToList(); label.Insert(0, "0:新建标签种类"); comboBox1.DataSource = label; if (string.IsNullOrEmpty(comText)) { comboBox1.SelectedIndex = 0; return; } comboBox1.Text = comText; }
public MyLabels(int id) { AllLabels = LabelData.GetAllLabel(id); }
public MyLabels() { AllLabels = LabelData.GetAllLabel(); }