Commit 947e7624 authored by Unknown's avatar Unknown

Теперь не видно как рендерится массив (panel invisible)

parent 14adf2f7
......@@ -28,6 +28,7 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.source_array_panel = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
......@@ -40,6 +41,7 @@
this.prevStep = new System.Windows.Forms.Button();
this.stepDescription = new System.Windows.Forms.Label();
this.stepsPanel = new System.Windows.Forms.Panel();
this.varDump = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.queryL = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
......@@ -47,7 +49,6 @@
this.label8 = new System.Windows.Forms.Label();
this.queryR = new System.Windows.Forms.TextBox();
this.setQuery = new System.Windows.Forms.Button();
this.varDump = new System.Windows.Forms.Label();
this.stepsPanel.SuspendLayout();
this.SuspendLayout();
//
......@@ -179,9 +180,22 @@
this.stepsPanel.Controls.Add(this.stepDescription);
this.stepsPanel.Location = new System.Drawing.Point(12, 364);
this.stepsPanel.Name = "stepsPanel";
this.stepsPanel.Size = new System.Drawing.Size(1236, 271);
this.stepsPanel.Size = new System.Drawing.Size(1236, 251);
this.stepsPanel.TabIndex = 14;
//
// varDump
//
this.varDump.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.varDump.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.varDump.Location = new System.Drawing.Point(0, 159);
this.varDump.Margin = new System.Windows.Forms.Padding(0);
this.varDump.Name = "varDump";
this.varDump.Size = new System.Drawing.Size(1236, 83);
this.varDump.TabIndex = 19;
this.varDump.Text = "varDump";
this.varDump.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label9
//
this.label9.AutoSize = true;
......@@ -254,24 +268,11 @@
this.setQuery.UseVisualStyleBackColor = true;
this.setQuery.Click += new System.EventHandler(this.setQuery_Click);
//
// varDump
//
this.varDump.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.varDump.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.varDump.Location = new System.Drawing.Point(0, 169);
this.varDump.Margin = new System.Windows.Forms.Padding(0);
this.varDump.Name = "varDump";
this.varDump.Size = new System.Drawing.Size(1236, 83);
this.varDump.TabIndex = 19;
this.varDump.Text = "varDump";
this.varDump.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1264, 657);
this.ClientSize = new System.Drawing.Size(1264, 625);
this.Controls.Add(this.setQuery);
this.Controls.Add(this.queryR);
this.Controls.Add(this.label8);
......@@ -286,6 +287,7 @@
this.Controls.Add(this.support_array_panel);
this.Controls.Add(this.label1);
this.Controls.Add(this.source_array_panel);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form1";
this.Text = "Визуализатор SQRT-декомпозиции";
this.stepsPanel.ResumeLayout(false);
......
......@@ -328,6 +328,7 @@ namespace SQRT_Decomposition_Visualizer
public void DisplayArray(List<int> a)
{
panel.Visible = false;
Clear();
int x = 0;
count = a.Count;
......@@ -356,6 +357,7 @@ namespace SQRT_Decomposition_Visualizer
x += (int)tmp.CreateGraphics().MeasureString(tmp.Text, tmp.Font).Width + 22;
}
panel.Visible = true;
}
public void HighlightElement(int n)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment