示例#1
0
        // 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();
            }
        }
示例#2
0
        // 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();
            }
        }