Skip to content

Commit

Permalink
Resolves #38
Browse files Browse the repository at this point in the history
  • Loading branch information
andrijac committed Jan 21, 2019
1 parent 32ee915 commit e1467de
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions Source/Ruler/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,18 @@ public MainForm(RulerInfo rulerInfo)
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.SuspendLayout();
//
// MainForm
//
this.ClientSize = new System.Drawing.Size(120, 0);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.ClientSize = new System.Drawing.Size(0, 0);
this.Name = "Ruler";
this.Opacity = 0D;
this.ResumeLayout(false);
}
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.SuspendLayout();
//
// MainForm
//
this.ClientSize = new System.Drawing.Size(120, 0);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.ClientSize = new System.Drawing.Size(0, 0);
this.Name = "Ruler";
this.Opacity = 0D;
this.ResumeLayout(false);
}

protected override void OnLoad(EventArgs e)
{
Expand Down Expand Up @@ -121,6 +121,8 @@ private void Init(RulerInfo rulerInfo)
this.Text = "Ruler";
this.BackColor = Color.White;

this.TopMost = rulerInfo.TopMost;

// Create menu
this.CreateMenuItems(rulerInfo);

Expand Down Expand Up @@ -733,6 +735,6 @@ private static void DebugWrite(params object[] values)
#endif
}

#endregion Diagnostics
}
#endregion Diagnostics
}
}

0 comments on commit e1467de

Please sign in to comment.