Example #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            isUpdate = false;
            var c = new AddOrUpdateClient(isUpdate);

            c.Show();
        }
Example #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            var indices = lvClientList.SelectedItems.Count;

            if (indices < 1)
            {
                return;
            }

            var client = ClientManager.GetItems();

            isUpdate = true;

            var updateClient = new AddOrUpdateClient(client, isUpdate, Convert.ToInt32(lvClientList.SelectedItems[0].SubItems[0].Text));

            updateClient.Show();
        }