Skip to content

Commit 85fcd6f

Browse files
committed
typo
1 parent 9a22506 commit 85fcd6f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/ui/MainForm.cs

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Threading.Tasks;
33
using System.Windows.Forms;
4+
using PhpVersionSwitcher.Properties;
45

56
namespace PhpVersionSwitcher
67
{
@@ -19,8 +20,8 @@ public partial class MainForm : Form
1920

2021
public MainForm()
2122
{
22-
this.httpServer = new ServiceManager(Properties.Settings.Default.HttpServerServiceName);
23-
this.phpVersions = new VersionsManager(Properties.Settings.Default.PhpDir, this.httpServer);
23+
this.httpServer = new ServiceManager(Settings.Default.HttpServerServiceName);
24+
this.phpVersions = new VersionsManager(Settings.Default.PhpDir, this.httpServer);
2425
this.waitingForm = new WaitingForm();
2526

2627
this.InitializeComponent();
@@ -47,9 +48,9 @@ private void InitializeMainMenu()
4748
}
4849

4950
this.httpServerMenu = new ToolStripMenuItem(this.httpServer.ServiceName);
50-
this.httpServerStart = this.httpServerMenu.DropDownItems.Add("Start", Properties.Resources.Start, this.httpServerStart_Clicked);
51-
this.httpServerStop = this.httpServerMenu.DropDownItems.Add("Stop", Properties.Resources.Stop, this.httpServerStop_Clicked);
52-
this.httpServerRestart = this.httpServerMenu.DropDownItems.Add("Restart", Properties.Resources.Restart, this.httpServerRestart_Clicked);
51+
this.httpServerStart = this.httpServerMenu.DropDownItems.Add("Start", Resources.Start, this.httpServerStart_Clicked);
52+
this.httpServerStop = this.httpServerMenu.DropDownItems.Add("Stop", Resources.Stop, this.httpServerStop_Clicked);
53+
this.httpServerRestart = this.httpServerMenu.DropDownItems.Add("Restart", Resources.Restart, this.httpServerRestart_Clicked);
5354
this.UpdateHttpServerMenuState();
5455

5556
this.notifyIconMenu.Items.Add(new ToolStripSeparator());
@@ -61,7 +62,7 @@ private void InitializeMainMenu()
6162
private void UpdateHttpServerMenuState()
6263
{
6364
bool running = this.httpServer.IsRunning();
64-
this.httpServerMenu.Image = running ? Properties.Resources.Start : Properties.Resources.Stop;
65+
this.httpServerMenu.Image = running ? Resources.Start : Resources.Stop;
6566
this.httpServerStart.Enabled = !running;
6667
this.httpServerStop.Enabled = running;
6768
this.httpServerRestart.Enabled = running;

0 commit comments

Comments
 (0)