// EDIT CLIENT private void edytujToolStripMenuItem1_Click(object sender, EventArgs e) { Client selectedClient = Client.getClientFromList(this.clientsGrid.SelectedCells[0].Value.ToString(), clients); DialogResult result = new NewClientWindow(ref this.clients, ref selectedClient).ShowDialog(); if (result == DialogResult.OK) { isSaved = false; zapiszZmianyToolStripMenuItem.Enabled = true; this.loadTables(); } }
// NEW CLIENT private void newClientButton_Click_1(object sender, EventArgs e) { DialogResult result = new NewClientWindow(ref this.clients, clients.Count.ToString()).ShowDialog(); if (result == DialogResult.OK) { isSaved = false; zapiszZmianyToolStripMenuItem.Enabled = true; this.loadTables(); } }