Beispiel #1
0
 private void button3_Click(object sender, EventArgs e)//删除选中地点
 {
     if (LB.SelectedValue == null)
     {
         MyDialog.Msg("没有选中地点。", 2); return;
     }
     if (MyDialog.Ask("操作将删除此地点下的所有标签,确定执行?"))
     {
         M.DeleteAllByLocationID(SelectedLocationID);
         table.Rows.Find(SelectedLocationID).Delete();
         LB.Update();
         ToAdd();
     }
 }