begin process of changing 'edit tags' => book details
This commit is contained in:
parent
7e288c0c08
commit
6dfef09ea3
@ -13,7 +13,7 @@
|
|||||||
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
|
|
||||||
<Version>5.5.0.12</Version>
|
<Version>5.5.0.20</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|||||||
106
LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs
generated
106
LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs
generated
@ -28,58 +28,62 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.SaveBtn = new System.Windows.Forms.Button();
|
this.SaveBtn = new System.Windows.Forms.Button();
|
||||||
this.newTagsTb = new System.Windows.Forms.TextBox();
|
this.newTagsTb = new System.Windows.Forms.TextBox();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// SaveBtn
|
// SaveBtn
|
||||||
//
|
//
|
||||||
this.SaveBtn.Location = new System.Drawing.Point(396, 25);
|
this.SaveBtn.Location = new System.Drawing.Point(462, 29);
|
||||||
this.SaveBtn.Name = "SaveBtn";
|
this.SaveBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
||||||
this.SaveBtn.Size = new System.Drawing.Size(75, 23);
|
this.SaveBtn.Name = "SaveBtn";
|
||||||
this.SaveBtn.TabIndex = 1;
|
this.SaveBtn.Size = new System.Drawing.Size(88, 27);
|
||||||
this.SaveBtn.Text = "Save";
|
this.SaveBtn.TabIndex = 1;
|
||||||
this.SaveBtn.UseVisualStyleBackColor = true;
|
this.SaveBtn.Text = "Save";
|
||||||
this.SaveBtn.Click += new System.EventHandler(this.SaveBtn_Click);
|
this.SaveBtn.UseVisualStyleBackColor = true;
|
||||||
//
|
this.SaveBtn.Click += new System.EventHandler(this.SaveBtn_Click);
|
||||||
// newTagsTb
|
//
|
||||||
//
|
// newTagsTb
|
||||||
this.newTagsTb.Location = new System.Drawing.Point(12, 27);
|
//
|
||||||
this.newTagsTb.Name = "newTagsTb";
|
this.newTagsTb.Location = new System.Drawing.Point(14, 31);
|
||||||
this.newTagsTb.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
this.newTagsTb.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
||||||
this.newTagsTb.Size = new System.Drawing.Size(375, 20);
|
this.newTagsTb.Name = "newTagsTb";
|
||||||
this.newTagsTb.TabIndex = 0;
|
this.newTagsTb.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||||
//
|
this.newTagsTb.Size = new System.Drawing.Size(437, 23);
|
||||||
// label1
|
this.newTagsTb.TabIndex = 0;
|
||||||
//
|
//
|
||||||
this.label1.AutoSize = true;
|
// label1
|
||||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
//
|
||||||
this.label1.Name = "label1";
|
this.label1.AutoSize = true;
|
||||||
this.label1.Size = new System.Drawing.Size(424, 13);
|
this.label1.Location = new System.Drawing.Point(14, 10);
|
||||||
this.label1.TabIndex = 2;
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label1.Text = "Tags are separated by a space. Each tag can contain letters, numbers, and undersc" +
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(458, 15);
|
||||||
|
this.label1.TabIndex = 2;
|
||||||
|
this.label1.Text = "Tags are separated by a space. Each tag can contain letters, numbers, and undersc" +
|
||||||
"ores";
|
"ores";
|
||||||
//
|
//
|
||||||
// EditTagsDialog
|
// BookDetailsDialog
|
||||||
//
|
//
|
||||||
this.AcceptButton = this.SaveBtn;
|
this.AcceptButton = this.SaveBtn;
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(483, 60);
|
this.ClientSize = new System.Drawing.Size(564, 69);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
this.Controls.Add(this.newTagsTb);
|
this.Controls.Add(this.newTagsTb);
|
||||||
this.Controls.Add(this.SaveBtn);
|
this.Controls.Add(this.SaveBtn);
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
this.MaximizeBox = false;
|
this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
||||||
this.MinimizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.Name = "EditTagsDialog";
|
this.MinimizeBox = false;
|
||||||
this.ShowIcon = false;
|
this.Name = "BookDetailsDialog";
|
||||||
this.ShowInTaskbar = false;
|
this.ShowIcon = false;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.ShowInTaskbar = false;
|
||||||
this.Text = "Edit Tags";
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.ResumeLayout(false);
|
this.Text = "Book Details";
|
||||||
this.PerformLayout();
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@ namespace LibationWinForms.Dialogs
|
|||||||
}
|
}
|
||||||
public BookDetailsDialog(string title, string rawTags) : this()
|
public BookDetailsDialog(string title, string rawTags) : this()
|
||||||
{
|
{
|
||||||
this.Text = $"Edit Tags - {title}";
|
this.Text = title;
|
||||||
|
|
||||||
this.newTagsTb.Text = rawTags;
|
this.newTagsTb.Text = rawTags;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<root>
|
||||||
<root>
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
|||||||
@ -13,7 +13,7 @@ namespace LibationWinForms
|
|||||||
|
|
||||||
internal class EditTagsDataGridViewImageButtonCell : DataGridViewImageButtonCell
|
internal class EditTagsDataGridViewImageButtonCell : DataGridViewImageButtonCell
|
||||||
{
|
{
|
||||||
private static readonly Image ButtonImage = Properties.Resources.edit_tags_25x25;
|
private static readonly Image ButtonImage = Properties.Resources.edit_25x25;
|
||||||
private static readonly Color HiddenForeColor = Color.LightGray;
|
private static readonly Color HiddenForeColor = Color.LightGray;
|
||||||
|
|
||||||
protected override void Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates elementState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts)
|
protected override void Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates elementState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts)
|
||||||
|
|||||||
2
LibationWinForms/ProductsGrid.Designer.cs
generated
2
LibationWinForms/ProductsGrid.Designer.cs
generated
@ -200,7 +200,7 @@
|
|||||||
// dataGridViewImageButtonBoxColumn2
|
// dataGridViewImageButtonBoxColumn2
|
||||||
//
|
//
|
||||||
this.dataGridViewImageButtonBoxColumn2.DataPropertyName = "DisplayTags";
|
this.dataGridViewImageButtonBoxColumn2.DataPropertyName = "DisplayTags";
|
||||||
this.dataGridViewImageButtonBoxColumn2.HeaderText = "Edit Tags";
|
this.dataGridViewImageButtonBoxColumn2.HeaderText = "Tags and Details";
|
||||||
this.dataGridViewImageButtonBoxColumn2.Name = "dataGridViewImageButtonBoxColumn2";
|
this.dataGridViewImageButtonBoxColumn2.Name = "dataGridViewImageButtonBoxColumn2";
|
||||||
this.dataGridViewImageButtonBoxColumn2.ReadOnly = true;
|
this.dataGridViewImageButtonBoxColumn2.ReadOnly = true;
|
||||||
this.dataGridViewImageButtonBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
this.dataGridViewImageButtonBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
||||||
|
|||||||
20
LibationWinForms/Properties/Resources.Designer.cs
generated
20
LibationWinForms/Properties/Resources.Designer.cs
generated
@ -90,6 +90,26 @@ namespace LibationWinForms.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap edit_25x25 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("edit_25x25", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap edit_64x64 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("edit_64x64", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -1,5 +1,64 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
@ -53,12 +112,12 @@
|
|||||||
<value>2.0</value>
|
<value>2.0</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="reader">
|
<resheader name="reader">
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
<data name="default_cover_300x300" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="default_cover_300x300" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\img-coverart-prod-unavailable_300x300.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\img-coverart-prod-unavailable_300x300.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@ -68,6 +127,12 @@
|
|||||||
<data name="default_cover_80x80" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="default_cover_80x80" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\img-coverart-prod-unavailable_80x80.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\img-coverart-prod-unavailable_80x80.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="edit_25x25" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\edit_25x25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="edit_64x64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\edit_64x64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="edit_tags_25x25" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="edit_tags_25x25" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\edit-tags-25x25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\edit-tags-25x25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
BIN
LibationWinForms/Resources/edit_25x25.png
Normal file
BIN
LibationWinForms/Resources/edit_25x25.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 747 B |
BIN
LibationWinForms/Resources/edit_64x64.png
Normal file
BIN
LibationWinForms/Resources/edit_64x64.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 813 B |
@ -52,11 +52,13 @@ publish win64 platform, single-file
|
|||||||
dotnet publish -r win-x64 -c Release
|
dotnet publish -r win-x64 -c Release
|
||||||
-- end HOW TO PUBLISH ---------------------------------------------------------------------------------------------------------------------
|
-- end HOW TO PUBLISH ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- begin IMAGES ---------------------------------------------------------------------------------------------------------------------
|
-- begin IMAGES/ICONS ---------------------------------------------------------------------------------------------------------------------
|
||||||
edit tags icon images from:
|
edit tags icon images from:
|
||||||
icons8.com
|
icons8.com
|
||||||
search: tags
|
search: tags
|
||||||
-- end IMAGES ---------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
'edit' icon: https://www.iconfinder.com/icons/383147/edit_icon
|
||||||
|
-- end IMAGES/ICONS ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- begin AUDIBLE DETAILS ---------------------------------------------------------------------------------------------------------------------
|
-- begin AUDIBLE DETAILS ---------------------------------------------------------------------------------------------------------------------
|
||||||
alternate book id (eg BK_RAND_006061) is called 'sku' , 'sku_lite' , 'prod_id' , 'product_id' in different parts of the site
|
alternate book id (eg BK_RAND_006061) is called 'sku' , 'sku_lite' , 'prod_id' , 'product_id' in different parts of the site
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user