Exemple #1
0
        private void addAutoButton_Click(object sender, EventArgs e)
        {
            BuildAutoComanda();

            var newOperationForm = new NewComandaForm(ref _serviceApi, _auto);

            Hide();
            newOperationForm.ShowDialog();
            if (this.IsDisposed)
            {
                return;
            }
            Show();
        }
Exemple #2
0
        private void addAutoButton_Click(object sender, EventArgs e)
        {
            var _auto = _clientAutos.FirstOrDefault(a => a.NumarAuto.Equals(autoListBox.SelectedItem.ToString()));

            var newOperationForm = new NewComandaForm(ref _serviceApi, _auto);

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