//添加项目 private void tsmiProAdd_Click(object sender, EventArgs e) { projectfrm pro = new projectfrm(); pro.Text = "添加项目"; pro.ShowDialog(); RefreshTree("projectinfo", "DISTINCT province", "项目列表", "projectname ,projectid", "where province='", "projectid"); }
//项目添加按钮 private void btnProadd_Click(object sender, EventArgs e) { projectfrm pro = new projectfrm(); pro.Text = "添加项目"; pro.ProName = cmbPro.Text.Trim(); pro.ShowDialog(); if (pro.State) { cmbPro.AutoCompleteCustomSource = getSuggestSource("projectinfo", "projectName", cmbPro); } }
private void tsmiProAdd_Click(object sender, EventArgs e) { projectfrm pro = new projectfrm(); pro.ShowDialog(); }
//项目添加按钮 private void btnProadd_Click(object sender, EventArgs e) { projectfrm pro = new projectfrm(); pro.Text = "添加项目"; pro.ProName = cmbPro.Text.Trim(); pro.ShowDialog(); if(pro.State) cmbPro.AutoCompleteCustomSource = getSuggestSource("projectinfo", "projectName", cmbPro); }