private void ListViewImages_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (ListViewImages.SelectedItem != null)
     {
         ManagementPackImage Image = (ManagementPackImage)this.ListViewImages.SelectedItem;
         SelectImageHandlerClass.EventHandler(true, Image);
         this.Close();
     }
 }
 private void lbOK_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (ListViewImages.SelectedItem != null)
     {
         ManagementPackImage Image = (ManagementPackImage)this.ListViewImages.SelectedItem;
         SelectImageHandlerClass.EventHandler(true, Image);
         this.Close();
     }
     else
     {
         MessageBox.Show("Please select Image!", "No Image selected", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
 private void lbCancel_MouseDown(object sender, MouseButtonEventArgs e)
 {
     SelectImageHandlerClass.EventHandler(false, null);
     this.Close();
 }