Exemplo n.º 1
0
        public Roundtrip CreateNewRoundtrip(bool wait, int position = -1, bool isTextChanged = true)
        {
            var r = new Roundtrip(_executionQueue);

            _sessionViewModel.AddRoundtripViewModel(r.ViewModel, position, isTextChanged);

            if (wait)
            {
                r.ViewModel.CreatedEvent.WaitOne();
            }

            return(r);
        }