Exemple #1
0
        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();
                }
            }
        }
Exemple #2
0
        private void 添加客户ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormAddClient fm = new FormAddClient();

            fm.Show();
        }
Exemple #3
0
        private void tsbtnAdd_Click(object sender, EventArgs e)
        {
            FormAddClient fm = new FormAddClient();

            fm.Show();
        }
Exemple #4
0
        private void lklbAddClient_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FormAddClient fm = new FormAddClient();

            fm.Show();
        }