Ejemplo n.º 1
0
 private void listBox1_Click(object sender, EventArgs e)//点击分组
 {
     if (LBGroups.SelectedValue != null)
     {
         LBLabels.Reset("select LabelName,Path from Labels where GroupID=" + LBGroups.SelectedValue + " order by LabelOrder", "LabelName", "Path");
     }
     LBLabels.Focus();
 }
Ejemplo n.º 2
0
 void ReloadData()
 {
     LBGroups.Reset("select GroupID,GroupName from LabelGroups where LocationID=" + INI.GetLocationID() + " order by GroupOrder", "GroupName", "GroupID");
     try { FirstGroupID = ((DataRowView)LBGroups.Items[0])["GroupID"].ToString(); }
     catch { FirstGroupID = "0"; }
     LBLabels.Reset("select LabelName,Path from Labels where GroupID=" + FirstGroupID + " order by LabelOrder", "LabelName", "Path");
     try { LBGroups.SelectedIndex = 0; }
     catch { }
     LBLabels.Focus();
 }