private void btnOpenDir_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Controls.Button button = (System.Windows.Controls.Button)sender;
            int             index = int.Parse(button.Tag.ToString());
            MonitorDirModel model = monitorDirModelList.ToList().Find(x => x.Index == index);
            string          path  = model.DirPath;

            System.Diagnostics.Process.Start("explorer.exe", path);
        }
 private void dgDir_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (dgDir.SelectedIndex >= 0)
     {
         foreach (MonitorDirModel model in monitorDirModelList)
         {
             model.IsChecked = false;
         }
         if (dgDir.SelectedItems.Count > 1)
         {
             foreach (var item in dgDir.SelectedItems)
             {
                 MonitorDirModel model = item as MonitorDirModel;
                 model.IsChecked = true;
             }
         }
         else
         {
             MonitorDirModel model = dgDir.SelectedItem as MonitorDirModel;
             model.IsChecked = true;
         }
     }
 }