Create GridView namespace
This commit is contained in:
parent
d71cdecd35
commit
e778c7a59d
@ -38,7 +38,7 @@ namespace LibationWinForms.Dialogs
|
|||||||
this.authorsDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.authorsDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.miscDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.miscDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.purchaseDateGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.purchaseDateGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.gridEntryBindingSource = new LibationWinForms.SyncBindingSource(this.components);
|
this.gridEntryBindingSource = new LibationWinForms.GridView.SyncBindingSource(this.components);
|
||||||
this.btnRemoveBooks = new System.Windows.Forms.Button();
|
this.btnRemoveBooks = new System.Windows.Forms.Button();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
((System.ComponentModel.ISupportInitialize)(this._dataGridView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this._dataGridView)).BeginInit();
|
||||||
@ -176,7 +176,7 @@ namespace LibationWinForms.Dialogs
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private System.Windows.Forms.DataGridView _dataGridView;
|
private System.Windows.Forms.DataGridView _dataGridView;
|
||||||
private LibationWinForms.SyncBindingSource gridEntryBindingSource;
|
private LibationWinForms.GridView.SyncBindingSource gridEntryBindingSource;
|
||||||
private System.Windows.Forms.Button btnRemoveBooks;
|
private System.Windows.Forms.Button btnRemoveBooks;
|
||||||
private System.Windows.Forms.Label label1;
|
private System.Windows.Forms.Label label1;
|
||||||
private System.Windows.Forms.DataGridViewCheckBoxColumn removeDataGridViewCheckBoxColumn;
|
private System.Windows.Forms.DataGridViewCheckBoxColumn removeDataGridViewCheckBoxColumn;
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@ -121,7 +120,7 @@ namespace LibationWinForms.Dialogs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class RemovableGridEntry : LibraryBookEntry
|
internal class RemovableGridEntry : GridView.LibraryBookEntry
|
||||||
{
|
{
|
||||||
private bool _remove = false;
|
private bool _remove = false;
|
||||||
public RemovableGridEntry(LibraryBook libraryBook) : base(libraryBook) { }
|
public RemovableGridEntry(LibraryBook libraryBook) : base(libraryBook) { }
|
||||||
|
|||||||
4
Source/LibationWinForms/Form1.Designer.cs
generated
4
Source/LibationWinForms/Form1.Designer.cs
generated
@ -72,7 +72,7 @@
|
|||||||
this.addQuickFilterBtn = new System.Windows.Forms.Button();
|
this.addQuickFilterBtn = new System.Windows.Forms.Button();
|
||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||||
this.panel1 = new System.Windows.Forms.Panel();
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
this.productsDisplay = new LibationWinForms.ProductsDisplay();
|
this.productsDisplay = new LibationWinForms.GridView.ProductsDisplay();
|
||||||
this.toggleQueueHideBtn = new System.Windows.Forms.Button();
|
this.toggleQueueHideBtn = new System.Windows.Forms.Button();
|
||||||
this.processBookQueue1 = new LibationWinForms.ProcessQueue.ProcessQueueControl();
|
this.processBookQueue1 = new LibationWinForms.ProcessQueue.ProcessQueueControl();
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
@ -583,6 +583,6 @@
|
|||||||
private LibationWinForms.ProcessQueue.ProcessQueueControl processBookQueue1;
|
private LibationWinForms.ProcessQueue.ProcessQueueControl processBookQueue1;
|
||||||
private System.Windows.Forms.Panel panel1;
|
private System.Windows.Forms.Panel panel1;
|
||||||
private System.Windows.Forms.Button toggleQueueHideBtn;
|
private System.Windows.Forms.Button toggleQueueHideBtn;
|
||||||
private ProductsDisplay productsDisplay;
|
private LibationWinForms.GridView.ProductsDisplay productsDisplay;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public abstract class AsyncNotifyPropertyChanged : SynchronizeInvoker, INotifyPropertyChanged
|
public abstract class AsyncNotifyPropertyChanged : SynchronizeInvoker, INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
@ -1,7 +1,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public class DataGridViewImageButtonCell : DataGridViewButtonCell
|
public class DataGridViewImageButtonCell : DataGridViewButtonCell
|
||||||
{
|
{
|
||||||
@ -1,4 +1,4 @@
|
|||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
partial class DescriptionDisplay
|
partial class DescriptionDisplay
|
||||||
{
|
{
|
||||||
@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public partial class DescriptionDisplay : Form
|
public partial class DescriptionDisplay : Form
|
||||||
{
|
{
|
||||||
@ -2,7 +2,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public class EditTagsDataGridViewImageButtonColumn : DataGridViewButtonColumn
|
public class EditTagsDataGridViewImageButtonColumn : DataGridViewButtonColumn
|
||||||
{
|
{
|
||||||
@ -8,7 +8,7 @@ using System.Collections.Generic;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public abstract class GridEntry : AsyncNotifyPropertyChanged, IMemberComparable
|
public abstract class GridEntry : AsyncNotifyPropertyChanged, IMemberComparable
|
||||||
{
|
{
|
||||||
@ -5,7 +5,7 @@ using System.Collections.Generic;
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Allows filtering and sorting of the underlying BindingList<GridEntry>
|
* Allows filtering and sorting of the underlying BindingList<GridEntry>
|
||||||
@ -1,4 +1,4 @@
|
|||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
partial class ImageDisplay
|
partial class ImageDisplay
|
||||||
{
|
{
|
||||||
@ -5,7 +5,7 @@ using System.Drawing;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public partial class ImageDisplay : Form
|
public partial class ImageDisplay : Form
|
||||||
{
|
{
|
||||||
@ -1,7 +1,7 @@
|
|||||||
using DataLayer;
|
using DataLayer;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public class LiberateButtonStatus : IComparable
|
public class LiberateButtonStatus : IComparable
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System.Windows.Forms;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using DataLayer;
|
using DataLayer;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public class LiberateDataGridViewImageButtonColumn : DataGridViewButtonColumn
|
public class LiberateDataGridViewImageButtonColumn : DataGridViewButtonColumn
|
||||||
{
|
{
|
||||||
@ -6,7 +6,7 @@ using ApplicationServices;
|
|||||||
using DataLayer;
|
using DataLayer;
|
||||||
using Dinah.Core;
|
using Dinah.Core;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The View Model for a LibraryBook
|
/// The View Model for a LibraryBook
|
||||||
@ -1,4 +1,4 @@
|
|||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
partial class ProductsDisplay
|
partial class ProductsDisplay
|
||||||
{
|
{
|
||||||
@ -28,7 +28,7 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.productsGrid = new LibationWinForms.grid.ProductsGrid();
|
this.productsGrid = new LibationWinForms.GridView.ProductsGrid();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// productsGrid
|
// productsGrid
|
||||||
@ -39,10 +39,10 @@
|
|||||||
this.productsGrid.Name = "productsGrid";
|
this.productsGrid.Name = "productsGrid";
|
||||||
this.productsGrid.Size = new System.Drawing.Size(1510, 380);
|
this.productsGrid.Size = new System.Drawing.Size(1510, 380);
|
||||||
this.productsGrid.TabIndex = 0;
|
this.productsGrid.TabIndex = 0;
|
||||||
this.productsGrid.LiberateClicked += new LibationWinForms.grid.ProductsGrid.LibraryBookEntryClickedEventHandler(this.productsGrid_LiberateClicked);
|
this.productsGrid.LiberateClicked += new LibationWinForms.GridView.ProductsGrid.LibraryBookEntryClickedEventHandler(this.productsGrid_LiberateClicked);
|
||||||
this.productsGrid.CoverClicked += new LibationWinForms.grid.ProductsGrid.LibraryBookEntryClickedEventHandler(this.productsGrid_CoverClicked);
|
this.productsGrid.CoverClicked += new LibationWinForms.GridView.ProductsGrid.LibraryBookEntryClickedEventHandler(this.productsGrid_CoverClicked);
|
||||||
this.productsGrid.DetailsClicked += new LibationWinForms.grid.ProductsGrid.LibraryBookEntryClickedEventHandler(this.productsGrid_DetailsClicked);
|
this.productsGrid.DetailsClicked += new LibationWinForms.GridView.ProductsGrid.LibraryBookEntryClickedEventHandler(this.productsGrid_DetailsClicked);
|
||||||
this.productsGrid.DescriptionClicked += new LibationWinForms.grid.ProductsGrid.LibraryBookEntryRectangleClickedEventHandler(this.productsGrid_DescriptionClicked);
|
this.productsGrid.DescriptionClicked += new LibationWinForms.GridView.ProductsGrid.LibraryBookEntryRectangleClickedEventHandler(this.productsGrid_DescriptionClicked);
|
||||||
this.productsGrid.VisibleCountChanged += new System.EventHandler<int>(this.productsGrid_VisibleCountChanged);
|
this.productsGrid.VisibleCountChanged += new System.EventHandler<int>(this.productsGrid_VisibleCountChanged);
|
||||||
//
|
//
|
||||||
// ProductsDisplay
|
// ProductsDisplay
|
||||||
@ -59,6 +59,6 @@
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private grid.ProductsGrid productsGrid;
|
private GridView.ProductsGrid productsGrid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -10,7 +10,7 @@ using FileLiberator;
|
|||||||
using LibationFileManager;
|
using LibationFileManager;
|
||||||
using LibationWinForms.Dialogs;
|
using LibationWinForms.Dialogs;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public partial class ProductsDisplay : UserControl
|
public partial class ProductsDisplay : UserControl
|
||||||
{
|
{
|
||||||
@ -1,4 +1,4 @@
|
|||||||
namespace LibationWinForms.grid
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
partial class ProductsGrid
|
partial class ProductsGrid
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@
|
|||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
this.gridEntryDataGridView = new System.Windows.Forms.DataGridView();
|
this.gridEntryDataGridView = new System.Windows.Forms.DataGridView();
|
||||||
this.liberateGVColumn = new LibationWinForms.LiberateDataGridViewImageButtonColumn();
|
this.liberateGVColumn = new LibationWinForms.GridView.LiberateDataGridViewImageButtonColumn();
|
||||||
this.coverGVColumn = new System.Windows.Forms.DataGridViewImageColumn();
|
this.coverGVColumn = new System.Windows.Forms.DataGridViewImageColumn();
|
||||||
this.titleGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.titleGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.authorsGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.authorsGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
@ -44,9 +44,9 @@
|
|||||||
this.purchaseDateGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.purchaseDateGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.myRatingGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.myRatingGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.miscGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.miscGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.tagAndDetailsGVColumn = new LibationWinForms.EditTagsDataGridViewImageButtonColumn();
|
this.tagAndDetailsGVColumn = new LibationWinForms.GridView.EditTagsDataGridViewImageButtonColumn();
|
||||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.syncBindingSource = new LibationWinForms.SyncBindingSource(this.components);
|
this.syncBindingSource = new LibationWinForms.GridView.SyncBindingSource(this.components);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.gridEntryDataGridView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.gridEntryDataGridView)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.syncBindingSource)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.syncBindingSource)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
@ -214,7 +214,7 @@
|
|||||||
//
|
//
|
||||||
// syncBindingSource
|
// syncBindingSource
|
||||||
//
|
//
|
||||||
this.syncBindingSource.DataSource = typeof(LibationWinForms.GridEntry);
|
this.syncBindingSource.DataSource = typeof(LibationWinForms.GridView.GridEntry);
|
||||||
//
|
//
|
||||||
// ProductsGrid
|
// ProductsGrid
|
||||||
//
|
//
|
||||||
@ -8,7 +8,7 @@ using System.Drawing;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace LibationWinForms.grid
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public partial class ProductsGrid : UserControl
|
public partial class ProductsGrid : UserControl
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public class SeriesEntry : GridEntry
|
public class SeriesEntry : GridEntry
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System.Threading;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
// https://stackoverflow.com/a/32886415
|
// https://stackoverflow.com/a/32886415
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms.GridView
|
||||||
{
|
{
|
||||||
public class SyncBindingSource : BindingSource
|
public class SyncBindingSource : BindingSource
|
||||||
{
|
{
|
||||||
@ -6,5 +6,5 @@
|
|||||||
cause the file to be unrecognizable by the program.
|
cause the file to be unrecognizable by the program.
|
||||||
-->
|
-->
|
||||||
<GenericObjectDataSource DisplayName="GridEntry" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
<GenericObjectDataSource DisplayName="GridEntry" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||||
<TypeInfo>LibationWinForms.GridEntry, LibationWinForms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
<TypeInfo>LibationWinForms.GridView.GridEntry, LibationWinForms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||||
</GenericObjectDataSource>
|
</GenericObjectDataSource>
|
||||||
Loading…
x
Reference in New Issue
Block a user