Esempio n. 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;
        }
Esempio n. 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();
        }