Example #1
0
        private void addClientButton_Click(object sender, EventArgs e)
        {
            var newClient = new Client()
            {
                Adresa     = clientAdresaRichBox.Text,
                Email      = clientEmailTextBox.Text,
                Judet      = clientJudetTextBox.Text,
                Localitate = clientLocalitateTextBox.Text,
                Nume       = clientNameTextBox.Text,
                Prenume    = clientPrenumeTextBox.Text,
                Telefon    = clientTelefonTextBox.Text
            };

            var newAutoForm = new NewAutoForm(ref _serviceApi, newClient);

            Hide();
            newAutoForm.ShowDialog();

            if (this.IsDisposed)
            {
                return;
            }

            Show();
        }
Example #2
0
        private void newAutoButton_Click(object sender, EventArgs e)
        {
            var newAutoForm = new NewAutoForm(ref _serviceApi, _client);

            Hide();
            newAutoForm.ShowDialog();
            if (this.IsDisposed)
            {
                return;
            }
            Show();
        }