예제 #1
0
파일: FmClient.cs 프로젝트: h3yTr0uble/Rent
        private void AddNewClient()
        {
            FmClientEditor fmClientEditor = new FmClientEditor();

            if (fmClientEditor.ShowDialog() == DialogResult.OK)
            {
                List <Client> clients = new List <Client>(GetClients());
                FillCtlClients(clients);
            }
        }
예제 #2
0
파일: FmClient.cs 프로젝트: h3yTr0uble/Rent
        private void EditSelectedClient()
        {
            if (ctlClients.SelectedCells.Count > 0)
            {
                Client client = (Client)ctlClients.SelectedCells[0].OwningRow.DataBoundItem;

                FmClientEditor fmClientEditor = new FmClientEditor(client);
                if (fmClientEditor.ShowDialog() == DialogResult.OK)
                {
                    List <Client> clients = new List <Client>(GetClients());
                    FillCtlClients(clients);
                }
            }
        }