Skip to content

Commit

Permalink
Merge pull request #227 from Hirogen/consistent-encoding
Browse files Browse the repository at this point in the history
Consistent encoding
  • Loading branch information
Hirogen authored Jun 21, 2022
2 parents 5f94ae7 + b985844 commit 310be23
Show file tree
Hide file tree
Showing 6 changed files with 566 additions and 432 deletions.
13 changes: 10 additions & 3 deletions src/LogExpert/Controls/LogTabWindow/LogTabWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Drawing;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using LogExpert.Config;
Expand Down Expand Up @@ -112,20 +113,26 @@ public LogTabWindow(string[] fileNames, int instanceNumber, bool showInstanceNum
_tabStringFormat.LineAlignment = StringAlignment.Center;
_tabStringFormat.Alignment = StringAlignment.Near;

ToolStripControlHost host = new ToolStripControlHost(followTailCheckBox);
ToolStripControlHost host = new ToolStripControlHost(checkBoxFollowTail);

host.Padding = new Padding(20, 0, 0, 0);
host.BackColor = Color.FromKnownColor(KnownColor.Transparent);

int index = buttonToolStrip.Items.IndexOfKey("toolStripButtonTail");


toolStripEncodingASCIIItem.Text = Encoding.ASCII.HeaderName;
toolStripEncodingANSIItem.Text = Encoding.Default.HeaderName;
toolStripEncodingISO88591Item.Text = Encoding.GetEncoding("iso-8859-1").HeaderName;
toolStripEncodingUTF8Item.Text = Encoding.UTF8.HeaderName;
toolStripEncodingUTF16Item.Text = Encoding.Unicode.HeaderName;

if (index != -1)
{
buttonToolStrip.Items.RemoveAt(index);
buttonToolStrip.Items.Insert(index, host);
}

dateTimeDragControl.Visible = false;
dragControlDateTime.Visible = false;
loadProgessBar.Visible = false;

// get a reference to the current assembly
Expand Down
Loading

0 comments on commit 310be23

Please sign in to comment.