Skip to content

Commit

Permalink
#49 Jog feed rate not remembered (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
k3ldar authored Oct 13, 2023
1 parent bde10d7 commit 753b8b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/GCSDesktop/Forms/FrmMachine.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/GCSDesktop/Forms/FrmMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,10 @@ private void HookUpEvents()
selectionOverrideSpindle.EnabledChanged += SelectionOverride_ValueChanged;
cbOverridesDisable.CheckedChanged += SelectionOverride_ValueChanged;

jogControl.OnJogStart += jogControl_OnJogStart;
jogControl.OnJogStop += jogControl_OnJogStop;
jogControl.OnUpdate += jogControl_OnUpdate;

trackBarPercent.ValueChanged += SelectionOverride_ValueChanged;

btnGrblCommandClear.Click += btnGrblCommandClear_Click;
Expand Down
8 changes: 4 additions & 4 deletions src/GSendControls/Controls/BaseControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected override void OnLoad(EventArgs e)
/// <param name="Title">Title of dialog box</param>
/// <param name="Message">Message to be displayed</param>
/// <returns>true if user clicks yes, otherwise false</returns>
protected bool ShowHardConfirm(string Title, string Message)
protected static bool ShowHardConfirm(string Title, string Message)
{
return MessageBox.Show(Message, Title, MessageBoxButtons.YesNo, MessageBoxIcon.Stop) == DialogResult.Yes;
}
Expand All @@ -116,7 +116,7 @@ protected bool ShowHardConfirm(string Title, string Message)
/// <param name="Title">Title of dialog box</param>
/// <param name="Message">Message to be displayed</param>
/// <returns>true if user clicks yes, otherwise false</returns>
protected bool ShowQuestion(string Title, string Message)
protected static bool ShowQuestion(string Title, string Message)
{
return MessageBox.Show(Message, Title, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes;
}
Expand All @@ -126,7 +126,7 @@ protected bool ShowQuestion(string Title, string Message)
/// </summary>
/// <param name="Title">Title of dialog box</param>
/// <param name="Message">Message to be displayed</param>
protected void ShowInformation(string Title, string Message)
protected static void ShowInformation(string Title, string Message)
{
MessageBox.Show(Message, Title, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Expand All @@ -136,7 +136,7 @@ protected void ShowInformation(string Title, string Message)
/// </summary>
/// <param name="Title">Title of dialog box</param>
/// <param name="Message">Message to be displayed</param>
protected void ShowError(string Title, string Message)
protected static void ShowError(string Title, string Message)
{
MessageBox.Show(Message, Title, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
Expand Down

0 comments on commit 753b8b4

Please sign in to comment.