This commit is contained in:
2022-07-03 23:28:15 +00:00
parent b13039af13
commit 21bb11e68a
2 changed files with 44 additions and 86 deletions

View File

@@ -28,10 +28,10 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.objectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.customersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -194,6 +194,7 @@
this.autoLinkToolStripMenuItem.Name = "autoLinkToolStripMenuItem";
this.autoLinkToolStripMenuItem.Size = new System.Drawing.Size(67, 20);
this.autoLinkToolStripMenuItem.Text = "&Auto link";
this.autoLinkToolStripMenuItem.Click += new System.EventHandler(this.autoLinkToolStripMenuItem_Click);
//
// updateAyaNovaPricesToolStripMenuItem
//
@@ -206,17 +207,17 @@
this.gridAya.AllowUserToAddRows = false;
this.gridAya.AllowUserToDeleteRows = false;
this.gridAya.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.gridAya.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke;
this.gridAya.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
this.gridAya.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.gridAya.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.gridAya.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.gridAya.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gridAya.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.AyaName,
@@ -263,17 +264,17 @@
this.gridQB.AllowUserToAddRows = false;
this.gridQB.AllowUserToDeleteRows = false;
this.gridQB.AllowUserToResizeRows = false;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.gridQB.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.WhiteSmoke;
this.gridQB.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
this.gridQB.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.gridQB.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.gridQB.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.gridQB.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gridQB.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,

View File

@@ -61,11 +61,21 @@ namespace AyaNovaQBI
#region IMPORT
private void importSelectedItemsToolStripMenuItem_Click(object sender, EventArgs e)
{
}
#endregion import
#region AUTOMATIC LINK
private void autoLinkToolStripMenuItem_Click(object sender, EventArgs e)
{
}
#endregion auto link
#region LINK MANUALLY
private async void linkSelectedItemsToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -222,7 +232,7 @@ namespace AyaNovaQBI
Initialize();
}
}
#endregion link manually
#region Initialize stuff
/// <summary>
@@ -408,7 +418,7 @@ namespace AyaNovaQBI
#endregion init
#region menu utility stuff
#region utility stuff
private void showSubItemToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -534,65 +544,6 @@ namespace AyaNovaQBI
}
//public class QBNameID
//{
// public string Name { get; set; }
// public string ID { get; set; }
//}
//List<QBNameID> SelectedQBItems = new List<QBNameID>();
//public class AyaNameID
//{
// public string Name { get; set; }
// public long ID { get; set; }
//}
//List<AyaNameID> SelectedAyaItems = new List<AyaNameID>();
//private bool m_dragging = false;
//Rectangle dragBoxFromMouseDown;
//int rowIndexFromMouseDown;
//int rowIndexOfItemUnderMouseToDrop;
//private void gridAya_MouseDown(object sender, MouseEventArgs e)
//{
// if (e.Button != MouseButtons.Left)
// return;
// //Only do this if the user is positioned over a row
// rowIndexFromMouseDown = gridAya.HitTest(e.X, e.Y).RowIndex;
// if ((rowIndexFromMouseDown != -1))
// {
// SelectedAyaItems.Clear();
// if (gridAya.SelectedRows.Count > 0 && !gridAya.SelectedRows[0].IsNewRow)
// {
// foreach (DataGridViewRow r in gridAya.SelectedRows)
// {
// SelectedAyaItems.Add(new AyaNameID { Name = (string)r.Cells[0].Value, ID = (long)r.Cells[1].Value });
// }
// //Size dragSize = SystemInformation.DragSize;
// //dragBoxFromMouseDown = new Rectangle(new Point(e.X - (dragSize.Width / 2), e.Y - (dragSize.Height / 2)), dragSize);
// m_dragging = true;
// }
// }
// else
// {
// // dragBoxFromMouseDown = Rectangle.Empty;
// }
//}
#endregion menu utility stuff
private void gridAya_CellClick(object sender, DataGridViewCellEventArgs e)
{
@@ -626,5 +577,11 @@ namespace AyaNovaQBI
#endregion utility stuff
}
}