private void btnInsertServices_Click(object sender, RoutedEventArgs e) { var screen = new ServicesInfoWindow(ServicesInfoWindow.ADDACTION); this.IsEnabled = false; screen.ShowDialog(); LoadDuLieu(); this.IsEnabled = true; }
private void dgServices_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Service sv = dgServices.SelectedItem as Service; if (sv != null) { var screen = new ServicesInfoWindow(ServicesInfoWindow.INFOACTION, sv); this.IsEnabled = false; screen.ShowDialog(); this.IsEnabled = true; } LoadDuLieu(); }