コード例 #1
0
        // Source: https://stackoverflow.com/questions/22790181/wpf-datagrid-row-double-click-event-programmatically
        private void DataGridRow_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow       row        = sender as DataGridRow;
            MainDataGridEntry dgridentry = row.Item as MainDataGridEntry;

            foreach (List <ADObjectNameValuePair> adopair in dgridentry.ADObject.TailoredADObjects)
            {
                ADObjectViewWindow adObjectsWindow = new ADObjectViewWindow(adopair);
                adObjectsWindow.Show();
                adObjectsWindow.Title = adopair.First(x => x.PropertyName == "distinguishedname").PropertyValue;
            }
        }
コード例 #2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     // Close all the AD Object Windows the user opened before closing the AD Searcher Window
     ADObjectViewWindow.CloseAllWindows();
 }