From 0ebfa8b96e4b3d62fa188513d6bb1924971f1880 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 26 Feb 2018 03:22:06 -0600 Subject: [PATCH] Minor tweak --- DS4Windows/DS4Forms/DS4Form.Designer.cs | 2 +- DS4Windows/DS4Forms/DS4Form.cs | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.Designer.cs b/DS4Windows/DS4Forms/DS4Form.Designer.cs index 9d5d67b..dd6b88c 100644 --- a/DS4Windows/DS4Forms/DS4Form.Designer.cs +++ b/DS4Windows/DS4Forms/DS4Form.Designer.cs @@ -246,7 +246,7 @@ resources.ApplyResources(this.btnStartStop, "btnStartStop"); this.btnStartStop.Name = "btnStartStop"; this.btnStartStop.UseVisualStyleBackColor = true; - this.btnStartStop.Click += new System.EventHandler(this.btnStartStop_Click); + this.btnStartStop.Click += new System.EventHandler(this.BtnStartStop_Click); // // lbLastMessage // diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 2331628..4925862 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -886,12 +886,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question chData.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); } - protected void btnStartStop_Click(object sender, EventArgs e) + private void BtnStartStop_Click(object sender, EventArgs e) { BtnStartStop_Clicked(); } - private void serviceStartup(bool log) + private void ServiceStartup(bool log) { var uiContext = SynchronizationContext.Current; changingService = true; @@ -899,12 +899,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question { //Thread.CurrentThread.Priority = ThreadPriority.AboveNormal; Program.rootHub.Start(uiContext, log); - Invoke((System.Action)(() => { serviceStartupFinish(); })); + Invoke((System.Action)(() => { ServiceStartupFinish(); })); changingService = false; }); } - private void serviceStartupFinish() + private void ServiceStartupFinish() { if (SwipeProfiles && !hotkeysTimer.Enabled) { @@ -925,12 +925,12 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question TaskRunner.Run(() => { Program.rootHub.Stop(log, suspend); - Invoke((System.Action)(() => { serviceShutdownFinish(); })); + Invoke((System.Action)(() => { ServiceShutdownFinish(); })); changingService = false; }); } - private void serviceShutdownFinish() + private void ServiceShutdownFinish() { hotkeysTimer.Stop(); autoProfilesTimer.Stop(); @@ -943,7 +943,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question { if (btnStartStop.Text == Properties.Resources.StartText) { - serviceStartup(log); + ServiceStartup(log); } else if (btnStartStop.Text == Properties.Resources.StopText) {