Ejemplo n.º 1
0
        private void OpenWindow(DriverTiming driverTiming, Window ownerWindow)
        {
            DriverLapsWindow lapsWindow = new DriverLapsWindow()
            {
                Owner = ownerWindow,
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
            };

            new DriverLapsViewModel(driverTiming, lapsWindow);
            _openedWindows.Add(lapsWindow);
            lapsWindow.Closed += LapsWindow_Closed;
            lapsWindow.Show();
        }
Ejemplo n.º 2
0
        private void OpenWindow(DriverTimingViewModel driverTiming, Window ownerWindow)
        {
            if (driverTiming == null)
            {
                return;
            }
            DriverLapsWindow lapsWindow = new DriverLapsWindow()
            {
                Owner = ownerWindow,
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
            };

            new DriverLapsViewModel(driverTiming, lapsWindow, _driverPresentationsManager);
            _openedWindows.Add(lapsWindow);
            lapsWindow.Closed += LapsWindow_Closed;
            lapsWindow.Show();
        }