private void btnLook_Click(object sender, RoutedEventArgs e)
        {
            DeviceImageWindow device = new DeviceImageWindow();

            listView.SelectedItem = ((Button)sender).DataContext;
            device.Device         = (listView.SelectedItem) as AMS.ViewModel.DeviceInfo;
            device.ShowDialog();
        }
        /// <summary>
        /// 查看截图
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnImage_Click(object sender, RoutedEventArgs e)
        {
            DeviceInfoViewModel editdevice = this.DevicedataGrid.Items[DevicedataGrid.SelectedIndex] as DeviceInfoViewModel;
            DeviceImageWindow   diw        = new DeviceImageWindow();

            diw.Device = editdevice;
            diw.ShowDialog();
        }