Minor tweak

This commit is contained in:
Travis Nickles 2018-02-26 03:22:06 -06:00
parent 16341d37b5
commit 0ebfa8b96e
2 changed files with 8 additions and 8 deletions

View File

@ -246,7 +246,7 @@
resources.ApplyResources(this.btnStartStop, "btnStartStop"); resources.ApplyResources(this.btnStartStop, "btnStartStop");
this.btnStartStop.Name = "btnStartStop"; this.btnStartStop.Name = "btnStartStop";
this.btnStartStop.UseVisualStyleBackColor = true; this.btnStartStop.UseVisualStyleBackColor = true;
this.btnStartStop.Click += new System.EventHandler(this.btnStartStop_Click); this.btnStartStop.Click += new System.EventHandler(this.BtnStartStop_Click);
// //
// lbLastMessage // lbLastMessage
// //

View File

@ -886,12 +886,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
chData.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); chData.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
} }
protected void btnStartStop_Click(object sender, EventArgs e) private void BtnStartStop_Click(object sender, EventArgs e)
{ {
BtnStartStop_Clicked(); BtnStartStop_Clicked();
} }
private void serviceStartup(bool log) private void ServiceStartup(bool log)
{ {
var uiContext = SynchronizationContext.Current; var uiContext = SynchronizationContext.Current;
changingService = true; changingService = true;
@ -899,12 +899,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
{ {
//Thread.CurrentThread.Priority = ThreadPriority.AboveNormal; //Thread.CurrentThread.Priority = ThreadPriority.AboveNormal;
Program.rootHub.Start(uiContext, log); Program.rootHub.Start(uiContext, log);
Invoke((System.Action)(() => { serviceStartupFinish(); })); Invoke((System.Action)(() => { ServiceStartupFinish(); }));
changingService = false; changingService = false;
}); });
} }
private void serviceStartupFinish() private void ServiceStartupFinish()
{ {
if (SwipeProfiles && !hotkeysTimer.Enabled) if (SwipeProfiles && !hotkeysTimer.Enabled)
{ {
@ -925,12 +925,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
TaskRunner.Run(() => TaskRunner.Run(() =>
{ {
Program.rootHub.Stop(log, suspend); Program.rootHub.Stop(log, suspend);
Invoke((System.Action)(() => { serviceShutdownFinish(); })); Invoke((System.Action)(() => { ServiceShutdownFinish(); }));
changingService = false; changingService = false;
}); });
} }
private void serviceShutdownFinish() private void ServiceShutdownFinish()
{ {
hotkeysTimer.Stop(); hotkeysTimer.Stop();
autoProfilesTimer.Stop(); autoProfilesTimer.Stop();
@ -943,7 +943,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
{ {
if (btnStartStop.Text == Properties.Resources.StartText) if (btnStartStop.Text == Properties.Resources.StartText)
{ {
serviceStartup(log); ServiceStartup(log);
} }
else if (btnStartStop.Text == Properties.Resources.StopText) else if (btnStartStop.Text == Properties.Resources.StopText)
{ {