private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Name == "tslbAdd") { FormAddClient fm = new FormAddClient(); fm.Show(); } if (e.ClickedItem.Name == "tslbModify") { ModifyClient(); } if (e.ClickedItem.Name == "tslbDelete") { DialogResult result = MessageBox.Show("确认删除所选择的行?", "确认对话框", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (result == DialogResult.Yes) { DeleteClient(); } } }
private void 添加客户ToolStripMenuItem_Click(object sender, EventArgs e) { FormAddClient fm = new FormAddClient(); fm.Show(); }
private void tsbtnAdd_Click(object sender, EventArgs e) { FormAddClient fm = new FormAddClient(); fm.Show(); }
private void lklbAddClient_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FormAddClient fm = new FormAddClient(); fm.Show(); }