this.components = new System.ComponentModel.Container();\r
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmActivityWindow));\r
this.rtf_actLog = new System.Windows.Forms.RichTextBox();\r
- this.btn_close = new System.Windows.Forms.Button();\r
this.ToolTip = new System.Windows.Forms.ToolTip(this.components);\r
- this.btn_copy = new System.Windows.Forms.Button();\r
- this.btn_refresh = new System.Windows.Forms.Button();\r
+ this.panel1 = new System.Windows.Forms.Panel();\r
+ this.panel1.SuspendLayout();\r
this.SuspendLayout();\r
// \r
// rtf_actLog\r
// \r
this.rtf_actLog.Cursor = System.Windows.Forms.Cursors.IBeam;\r
this.rtf_actLog.DetectUrls = false;\r
- this.rtf_actLog.Location = new System.Drawing.Point(12, 12);\r
+ this.rtf_actLog.Dock = System.Windows.Forms.DockStyle.Fill;\r
+ this.rtf_actLog.Location = new System.Drawing.Point(0, 0);\r
this.rtf_actLog.Name = "rtf_actLog";\r
this.rtf_actLog.ReadOnly = true;\r
- this.rtf_actLog.Size = new System.Drawing.Size(515, 433);\r
+ this.rtf_actLog.Size = new System.Drawing.Size(390, 390);\r
this.rtf_actLog.TabIndex = 29;\r
this.rtf_actLog.Text = "";\r
// \r
- // btn_close\r
- // \r
- this.btn_close.BackColor = System.Drawing.SystemColors.ControlLight;\r
- this.btn_close.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
- this.btn_close.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.btn_close.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
- this.btn_close.Location = new System.Drawing.Point(399, 451);\r
- this.btn_close.Name = "btn_close";\r
- this.btn_close.Size = new System.Drawing.Size(128, 22);\r
- this.btn_close.TabIndex = 28;\r
- this.btn_close.TabStop = false;\r
- this.btn_close.Text = "Close Window";\r
- this.btn_close.UseVisualStyleBackColor = true;\r
- this.btn_close.Click += new System.EventHandler(this.btn_close_Click);\r
- // \r
// ToolTip\r
// \r
this.ToolTip.Active = false;\r
// \r
- // btn_copy\r
- // \r
- this.btn_copy.BackColor = System.Drawing.SystemColors.ControlLight;\r
- this.btn_copy.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
- this.btn_copy.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.btn_copy.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
- this.btn_copy.Location = new System.Drawing.Point(12, 451);\r
- this.btn_copy.Name = "btn_copy";\r
- this.btn_copy.Size = new System.Drawing.Size(134, 23);\r
- this.btn_copy.TabIndex = 93;\r
- this.btn_copy.Text = "Copy to Clipboard";\r
- this.btn_copy.UseVisualStyleBackColor = true;\r
- this.btn_copy.Click += new System.EventHandler(this.btn_copy_Click);\r
- // \r
- // btn_refresh\r
+ // panel1\r
// \r
- this.btn_refresh.BackColor = System.Drawing.SystemColors.ControlLight;\r
- this.btn_refresh.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
- this.btn_refresh.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.btn_refresh.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
- this.btn_refresh.Location = new System.Drawing.Point(152, 451);\r
- this.btn_refresh.Name = "btn_refresh";\r
- this.btn_refresh.Size = new System.Drawing.Size(69, 23);\r
- this.btn_refresh.TabIndex = 94;\r
- this.btn_refresh.Text = "Refresh";\r
- this.btn_refresh.UseVisualStyleBackColor = true;\r
- this.btn_refresh.Click += new System.EventHandler(this.btn_refresh_Click);\r
+ this.panel1.Controls.Add(this.rtf_actLog);\r
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;\r
+ this.panel1.Location = new System.Drawing.Point(0, 0);\r
+ this.panel1.Name = "panel1";\r
+ this.panel1.Size = new System.Drawing.Size(390, 390);\r
+ this.panel1.TabIndex = 95;\r
// \r
// frmActivityWindow\r
// \r
- this.AcceptButton = this.btn_close;\r
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F);\r
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
this.BackColor = System.Drawing.SystemColors.ControlLight;\r
- this.ClientSize = new System.Drawing.Size(539, 486);\r
- this.Controls.Add(this.btn_refresh);\r
- this.Controls.Add(this.btn_copy);\r
- this.Controls.Add(this.rtf_actLog);\r
- this.Controls.Add(this.btn_close);\r
+ this.ClientSize = new System.Drawing.Size(390, 390);\r
+ this.Controls.Add(this.panel1);\r
this.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));\r
this.MaximizeBox = false;\r
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
this.Text = "Activity Window";\r
this.Load += new System.EventHandler(this.frmActivityWindow_Load);\r
+ this.panel1.ResumeLayout(false);\r
this.ResumeLayout(false);\r
\r
}\r
#endregion\r
\r
internal System.Windows.Forms.RichTextBox rtf_actLog;\r
- internal System.Windows.Forms.Button btn_close;\r
internal System.Windows.Forms.ToolTip ToolTip;\r
- internal System.Windows.Forms.Button btn_copy;\r
- internal System.Windows.Forms.Button btn_refresh;\r
+ private System.Windows.Forms.Panel panel1;\r
}\r
}
\ No newline at end of file
/// </summary>\r
/// \r
Thread monitorFile;\r
- public frmActivityWindow()\r
+ String read_file;\r
+ public frmActivityWindow(string file)\r
{\r
InitializeComponent();\r
this.rtf_actLog.Text = string.Empty;\r
monitorFile = new Thread(autoUpdate);\r
+ read_file = file;\r
\r
}\r
- \r
- private void btn_close_Click(object sender, EventArgs e)\r
- {\r
- monitorFile.Abort();\r
- this.Hide();\r
- }\r
\r
private void frmActivityWindow_Load(object sender, EventArgs e)\r
{\r
{\r
// hb_encode_log.dat is the primary log file. Since .NET can't read this file whilst the CLI is outputing to it,\r
// we'll need to make a copy of it.\r
- string logFile = Path.Combine(Path.GetTempPath(), "hb_encode_log.dat");\r
+ string logFile = Path.Combine(Path.GetTempPath(), read_file);\r
string logFile2 = Path.Combine(Path.GetTempPath(), "hb_encode_log_AppReadable.dat");\r
\r
// Make sure the application readable log file does not already exist. FileCopy fill fail if it does.\r
\r
return log;\r
}\r
-\r
- private void btn_copy_Click(object sender, EventArgs e)\r
- {\r
- if (rtf_actLog.Text != "")\r
- Clipboard.SetText(rtf_actLog.Text, TextDataFormat.Rtf);\r
- }\r
-\r
- private void btn_refresh_Click(object sender, EventArgs e)\r
- {\r
- rtf_actLog.Clear();\r
- rtf_actLog.Text = readFile();\r
- }\r
-\r
-\r
}\r
}
\ No newline at end of file