Skip to content

Commit 6959b30

Browse files
author
Patrick Bruner
committed
rename dialog moved to LogExpert.UI
1 parent 469bd03 commit 6959b30

File tree

6 files changed

+270
-270
lines changed

6 files changed

+270
-270
lines changed

src/LogExpert/Controls/LogTabWindow/LogTabWindowEventHandlers.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,10 @@ private void OnTabRenameToolStripMenuItemClick(object sender, EventArgs e)
10041004
{
10051005
if (CurrentLogWindow != null)
10061006
{
1007-
TabRenameDlg dlg = new();
1008-
dlg.TabName = CurrentLogWindow.Text;
1007+
TabRenameDialog dlg = new()
1008+
{
1009+
TabName = CurrentLogWindow.Text
1010+
};
10091011
if (DialogResult.OK == dlg.ShowDialog())
10101012
{
10111013
CurrentLogWindow.Text = dlg.TabName;

src/Logexpert.UI/Dialogs/AboutBox.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace LogExpert.Dialogs
66
{
7-
[SupportedOSPlatform("windows6.1")]
7+
[SupportedOSPlatform("windows")]
88
public partial class AboutBox : Form
99
{
1010
#region Fields
@@ -17,11 +17,6 @@ public partial class AboutBox : Form
1717

1818
public AboutBox()
1919
{
20-
if (DesignMode)
21-
{
22-
return;
23-
}
24-
2520
InitializeComponent();
2621

2722
LoadResources();

src/LogExpert/Dialogs/TabRenameDlg.Designer.cs renamed to src/Logexpert.UI/Dialogs/TabRenameDialog.Designer.cs

Lines changed: 101 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
using System.Drawing;
2-
using System.Windows.Forms;
3-
4-
namespace LogExpert.Dialogs
5-
{
6-
public partial class TabRenameDlg : Form
7-
{
8-
#region cTor
9-
10-
public TabRenameDlg()
11-
{
12-
InitializeComponent();
13-
14-
AutoScaleDimensions = new SizeF(96F, 96F);
15-
AutoScaleMode = AutoScaleMode.Dpi;
16-
}
17-
18-
#endregion
19-
20-
#region Properties
21-
22-
public string TabName
23-
{
24-
get => textBoxTabName.Text;
25-
set => textBoxTabName.Text = value;
26-
}
27-
28-
#endregion
29-
30-
#region Events handler
31-
32-
private void OnTabRenameDlgKeyDown(object sender, KeyEventArgs e)
33-
{
34-
if (e.KeyCode == Keys.Escape)
35-
{
36-
DialogResult = DialogResult.Cancel;
37-
Close();
38-
}
39-
}
40-
41-
#endregion
42-
}
1+
using System.Runtime.Versioning;
2+
3+
namespace LogExpert.Dialogs
4+
{
5+
[SupportedOSPlatform("windows")]
6+
public partial class TabRenameDialog : Form
7+
{
8+
#region cTor
9+
10+
public TabRenameDialog()
11+
{
12+
InitializeComponent();
13+
14+
AutoScaleDimensions = new SizeF(96F, 96F);
15+
AutoScaleMode = AutoScaleMode.Dpi;
16+
}
17+
18+
#endregion
19+
20+
#region Properties
21+
22+
public string TabName
23+
{
24+
get => textBoxTabName.Text;
25+
set => textBoxTabName.Text = value;
26+
}
27+
28+
#endregion
29+
30+
#region Events handler
31+
32+
private void OnTabRenameDlgKeyDown(object sender, KeyEventArgs e)
33+
{
34+
if (e.KeyCode == Keys.Escape)
35+
{
36+
DialogResult = DialogResult.Cancel;
37+
Close();
38+
}
39+
}
40+
41+
#endregion
42+
}
4343
}

0 commit comments

Comments
 (0)