Beispiel #1
0
        //添加客户
        private void ShowForm(int t)
        {
            FormAddClient fm = new FormAddClient();

            fm.Id = t;
            DialogResult result = fm.ShowDialog();

            if (result == DialogResult.OK)
            {
                ShowCustomer();
            }
        }
Beispiel #2
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();
                }
            }
        }
Beispiel #3
0
        private void 添加客户ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormAddClient fm = new FormAddClient();

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

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

            fm.Show();
        }