예제 #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();
 }
예제 #2
0
 private void listBox2_Click(object sender, EventArgs e)//点击标签
 {
     if (LBLabels.SelectedValue != null)
     {
         MyProcess.Run(LBLabels.SelectedValue.ToString());
     }
     LBLabels.ClearSelected();
 }
예제 #3
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();
 }