Пример #1
0
        private void btnInsertUsedServices_Click(object sender, RoutedEventArgs e)
        {
            var screen = new UsedServicesInfoWindow(UsedServicesInfoWindow.ADDACTION);

            this.IsEnabled = false;
            screen.ShowDialog();
            LoadDuLieu();
            this.IsEnabled = true;
        }
Пример #2
0
        private void dgUsedServices_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            UsedService sv = dgUsedServices.SelectedItem as UsedService;

            if (sv != null)
            {
                var screen = new UsedServicesInfoWindow(UsedServicesInfoWindow.INFOACTION, sv);
                this.IsEnabled = false;
                screen.ShowDialog();

                this.IsEnabled = true;
            }
            LoadDuLieu();
        }