예제 #1
0
        private void buttonAddNewClient_Click(object sender, EventArgs e)
        {
            ClientInfoForm frm = new ClientInfoForm {
                EditMode = false
            };

            if (frm.ShowDialog() == DialogResult.OK)
            {
                RefreshClientList();
            }
        }
예제 #2
0
        private void buttonViewClient_Click(object sender, EventArgs e)
        {
            ClientInformation clientInfo = comboBoxEditClients.EditValue as ClientInformation;

            if (clientInfo != null)
            {
                ClientInfoForm frm = new ClientInfoForm
                {
                    ClientId = clientInfo.Id,
                    EditMode = true
                };

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    RefreshClientList();
                }
            }
        }