Пример #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();
        }
Пример #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();
        }