コード例 #1
0
        private void btnInsertServices_Click(object sender, RoutedEventArgs e)
        {
            var screen = new ServicesInfoWindow(ServicesInfoWindow.ADDACTION);

            this.IsEnabled = false;
            screen.ShowDialog();
            LoadDuLieu();
            this.IsEnabled = true;
        }
コード例 #2
0
        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();
        }