Пример #1
0
        private void MenuItemNewService_Click(object sender, RoutedEventArgs e)
        {
            ServiceWindow serviceWindow = new ServiceWindow
            {
                Owner = this
            };

            serviceWindow.ShowDialog();
        }
Пример #2
0
        private void MenuItemEditService_Click(object sender, RoutedEventArgs e)
        {
            VehicleService service = new VehicleService()
            {
                Id = 21
            };
            ServiceWindow serviceWindow = new ServiceWindow(service)
            {
                Owner = this
            };

            serviceWindow.ShowDialog();
        }