Added VirtualFlowControl and BookQueue
This commit is contained in:
parent
24cb1aa84f
commit
763a6cb31a
10 changed files with 902 additions and 416 deletions
|
|
@ -30,13 +30,16 @@
|
|||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProcessBookControl));
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.bookInfoLbl = new System.Windows.Forms.Label();
|
||||
this.progressBar1 = new System.Windows.Forms.ProgressBar();
|
||||
this.remainingTimeLbl = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.etaLbl = new System.Windows.Forms.Label();
|
||||
this.cancelBtn = new System.Windows.Forms.Button();
|
||||
this.statusLbl = new System.Windows.Forms.Label();
|
||||
this.bookInfoLbl = new System.Windows.Forms.Label();
|
||||
this.moveUpBtn = new System.Windows.Forms.Button();
|
||||
this.moveDownBtn = new System.Windows.Forms.Button();
|
||||
this.moveFirstBtn = new System.Windows.Forms.Button();
|
||||
this.moveLastBtn = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
|
@ -49,18 +52,6 @@
|
|||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// bookInfoLbl
|
||||
//
|
||||
this.bookInfoLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.bookInfoLbl.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.bookInfoLbl.Location = new System.Drawing.Point(89, 3);
|
||||
this.bookInfoLbl.Name = "bookInfoLbl";
|
||||
this.bookInfoLbl.Size = new System.Drawing.Size(255, 56);
|
||||
this.bookInfoLbl.TabIndex = 1;
|
||||
this.bookInfoLbl.Text = "[multi-\r\nline\r\nbook\r\n info]";
|
||||
//
|
||||
// progressBar1
|
||||
//
|
||||
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
|
|
@ -81,17 +72,17 @@
|
|||
this.remainingTimeLbl.Text = "--:--";
|
||||
this.remainingTimeLbl.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// label1
|
||||
// etaLbl
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.label1.Location = new System.Drawing.Point(304, 66);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(28, 13);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "ETA:";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
this.etaLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.etaLbl.AutoSize = true;
|
||||
this.etaLbl.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.etaLbl.Location = new System.Drawing.Point(304, 66);
|
||||
this.etaLbl.Name = "etaLbl";
|
||||
this.etaLbl.Size = new System.Drawing.Size(28, 13);
|
||||
this.etaLbl.TabIndex = 3;
|
||||
this.etaLbl.Text = "ETA:";
|
||||
this.etaLbl.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// cancelBtn
|
||||
//
|
||||
|
|
@ -101,7 +92,7 @@
|
|||
this.cancelBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.cancelBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.cancelBtn.ForeColor = System.Drawing.SystemColors.Control;
|
||||
this.cancelBtn.Location = new System.Drawing.Point(352, 3);
|
||||
this.cancelBtn.Location = new System.Drawing.Point(348, 6);
|
||||
this.cancelBtn.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cancelBtn.Name = "cancelBtn";
|
||||
this.cancelBtn.Size = new System.Drawing.Size(20, 20);
|
||||
|
|
@ -109,53 +100,100 @@
|
|||
this.cancelBtn.UseVisualStyleBackColor = false;
|
||||
this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
|
||||
//
|
||||
// statusLbl
|
||||
//
|
||||
this.statusLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.statusLbl.AutoSize = true;
|
||||
this.statusLbl.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.statusLbl.Location = new System.Drawing.Point(89, 66);
|
||||
this.statusLbl.Name = "statusLbl";
|
||||
this.statusLbl.Size = new System.Drawing.Size(50, 13);
|
||||
this.statusLbl.TabIndex = 3;
|
||||
this.statusLbl.Text = "[STATUS]";
|
||||
this.statusLbl.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// bookInfoLbl
|
||||
//
|
||||
this.bookInfoLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.bookInfoLbl.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.bookInfoLbl.Location = new System.Drawing.Point(89, 6);
|
||||
this.bookInfoLbl.Name = "bookInfoLbl";
|
||||
this.bookInfoLbl.Size = new System.Drawing.Size(219, 56);
|
||||
this.bookInfoLbl.TabIndex = 1;
|
||||
this.bookInfoLbl.Text = "[multi-\r\nline\r\nbook\r\n info]";
|
||||
//
|
||||
// moveUpBtn
|
||||
//
|
||||
this.moveUpBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.moveUpBtn.BackColor = System.Drawing.Color.Transparent;
|
||||
this.moveUpBtn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.moveUpBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("moveUpBtn.BackgroundImage")));
|
||||
this.moveUpBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.moveUpBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.moveUpBtn.ForeColor = System.Drawing.SystemColors.Control;
|
||||
this.moveUpBtn.Location = new System.Drawing.Point(347, 39);
|
||||
this.moveUpBtn.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.moveUpBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.moveUpBtn.Location = new System.Drawing.Point(314, 24);
|
||||
this.moveUpBtn.Name = "moveUpBtn";
|
||||
this.moveUpBtn.Size = new System.Drawing.Size(25, 10);
|
||||
this.moveUpBtn.TabIndex = 4;
|
||||
this.moveUpBtn.UseVisualStyleBackColor = false;
|
||||
this.moveUpBtn.Click += new System.EventHandler(this.moveUpBtn_Click);
|
||||
this.moveUpBtn.Size = new System.Drawing.Size(30, 17);
|
||||
this.moveUpBtn.TabIndex = 5;
|
||||
this.moveUpBtn.UseVisualStyleBackColor = true;
|
||||
this.moveUpBtn.Click += new System.EventHandler(this.moveUpBtn_Click_1);
|
||||
//
|
||||
// moveDownBtn
|
||||
//
|
||||
this.moveDownBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.moveDownBtn.BackColor = System.Drawing.Color.Transparent;
|
||||
this.moveDownBtn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.moveDownBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("moveDownBtn.BackgroundImage")));
|
||||
this.moveDownBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.moveDownBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.moveDownBtn.ForeColor = System.Drawing.SystemColors.Control;
|
||||
this.moveDownBtn.Location = new System.Drawing.Point(347, 49);
|
||||
this.moveDownBtn.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.moveDownBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.moveDownBtn.Location = new System.Drawing.Point(314, 40);
|
||||
this.moveDownBtn.Name = "moveDownBtn";
|
||||
this.moveDownBtn.Size = new System.Drawing.Size(25, 10);
|
||||
this.moveDownBtn.Size = new System.Drawing.Size(30, 17);
|
||||
this.moveDownBtn.TabIndex = 5;
|
||||
this.moveDownBtn.UseVisualStyleBackColor = false;
|
||||
this.moveDownBtn.UseVisualStyleBackColor = true;
|
||||
this.moveDownBtn.Click += new System.EventHandler(this.moveDownBtn_Click);
|
||||
//
|
||||
// moveFirstBtn
|
||||
//
|
||||
this.moveFirstBtn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.moveFirstBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("moveFirstBtn.BackgroundImage")));
|
||||
this.moveFirstBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.moveFirstBtn.Location = new System.Drawing.Point(314, 3);
|
||||
this.moveFirstBtn.Name = "moveFirstBtn";
|
||||
this.moveFirstBtn.Size = new System.Drawing.Size(30, 17);
|
||||
this.moveFirstBtn.TabIndex = 5;
|
||||
this.moveFirstBtn.UseVisualStyleBackColor = true;
|
||||
this.moveFirstBtn.Click += new System.EventHandler(this.moveFirstBtn_Click);
|
||||
//
|
||||
// moveLastBtn
|
||||
//
|
||||
this.moveLastBtn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.moveLastBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("moveLastBtn.BackgroundImage")));
|
||||
this.moveLastBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.moveLastBtn.Location = new System.Drawing.Point(314, 63);
|
||||
this.moveLastBtn.Name = "moveLastBtn";
|
||||
this.moveLastBtn.Size = new System.Drawing.Size(30, 17);
|
||||
this.moveLastBtn.TabIndex = 5;
|
||||
this.moveLastBtn.UseVisualStyleBackColor = true;
|
||||
this.moveLastBtn.Click += new System.EventHandler(this.moveLastBtn_Click);
|
||||
//
|
||||
// ProcessBookControl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.SystemColors.ControlLight;
|
||||
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.Controls.Add(this.moveLastBtn);
|
||||
this.Controls.Add(this.moveDownBtn);
|
||||
this.Controls.Add(this.moveFirstBtn);
|
||||
this.Controls.Add(this.moveUpBtn);
|
||||
this.Controls.Add(this.cancelBtn);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.statusLbl);
|
||||
this.Controls.Add(this.etaLbl);
|
||||
this.Controls.Add(this.remainingTimeLbl);
|
||||
this.Controls.Add(this.progressBar1);
|
||||
this.Controls.Add(this.bookInfoLbl);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
|
||||
this.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.Name = "ProcessBookControl";
|
||||
this.Size = new System.Drawing.Size(375, 86);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
|
|
@ -167,12 +205,15 @@
|
|||
#endregion
|
||||
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.Label bookInfoLbl;
|
||||
private System.Windows.Forms.ProgressBar progressBar1;
|
||||
private System.Windows.Forms.Label remainingTimeLbl;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label etaLbl;
|
||||
private System.Windows.Forms.Button cancelBtn;
|
||||
private System.Windows.Forms.Label statusLbl;
|
||||
private System.Windows.Forms.Label bookInfoLbl;
|
||||
private System.Windows.Forms.Button moveUpBtn;
|
||||
private System.Windows.Forms.Button moveDownBtn;
|
||||
private System.Windows.Forms.Button moveFirstBtn;
|
||||
private System.Windows.Forms.Button moveLastBtn;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue