Version 1.3 is ready. #41

Merged
That-One-Nerd merged 23 commits from canary into main 2024-05-03 09:08:09 -04:00
3 changed files with 8 additions and 11 deletions
Showing only changes of commit 66146355c6 - Show all commits

View File

@ -504,6 +504,6 @@ public partial class GraphForm : Form
{ {
shifter.StartPosition = FormStartPosition.WindowsDefaultLocation; shifter.StartPosition = FormStartPosition.WindowsDefaultLocation;
} }
shifter.ShowDialog(); shifter.Show();
} }
} }

View File

@ -180,6 +180,7 @@
Name = "TranslateForm"; Name = "TranslateForm";
Padding = new System.Windows.Forms.Padding(15); Padding = new System.Windows.Forms.Padding(15);
Text = "Herm"; Text = "Herm";
TopMost = true;
((System.ComponentModel.ISupportInitialize)TrackX).EndInit(); ((System.ComponentModel.ISupportInitialize)TrackX).EndInit();
((System.ComponentModel.ISupportInitialize)TrackY).EndInit(); ((System.ComponentModel.ISupportInitialize)TrackY).EndInit();
ResumeLayout(false); ResumeLayout(false);

View File

@ -9,8 +9,6 @@ public partial class TranslateForm : Form
private readonly GraphForm refForm; private readonly GraphForm refForm;
// These variables both represent the same graphable. // These variables both represent the same graphable.
private readonly Graphable ableRaw;
private readonly ITranslatable ableTrans;
private readonly ITranslatableX? ableTransX; private readonly ITranslatableX? ableTransX;
private readonly ITranslatableY? ableTransY; private readonly ITranslatableY? ableTransY;
@ -26,20 +24,20 @@ public partial class TranslateForm : Form
Text = $"Translate {ableRaw.Name}"; Text = $"Translate {ableRaw.Name}";
TitleLabel.Text = $"Adjust Location for {ableRaw.Name}"; TitleLabel.Text = $"Adjust Location for {ableRaw.Name}";
MinBoxX.Leave += (o, e) => UpdateFromMinBoxY(); MinBoxX.Leave += (o, e) => UpdateFromMinBoxX();
MinBoxX.KeyDown += (o, e) => MinBoxX.KeyDown += (o, e) =>
{ {
if (e.KeyCode == Keys.Enter) UpdateFromMinBoxY(); if (e.KeyCode == Keys.Enter) UpdateFromMinBoxX();
}; };
MaxBoxX.Leave += (o, e) => UpdateFromMaxBoxY(); MaxBoxX.Leave += (o, e) => UpdateFromMaxBoxX();
MaxBoxX.KeyDown += (o, e) => MaxBoxX.KeyDown += (o, e) =>
{ {
if (e.KeyCode == Keys.Enter) UpdateFromMaxBoxY(); if (e.KeyCode == Keys.Enter) UpdateFromMaxBoxX();
}; };
ThisValueX.Leave += (o, e) => UpdateFromThisBoxY(); ThisValueX.Leave += (o, e) => UpdateFromThisBoxX();
ThisValueX.KeyDown += (o, e) => ThisValueX.KeyDown += (o, e) =>
{ {
if (e.KeyCode == Keys.Enter) UpdateFromThisBoxY(); if (e.KeyCode == Keys.Enter) UpdateFromThisBoxX();
}; };
MinBoxY.Leave += (o, e) => UpdateFromMinBoxY(); MinBoxY.Leave += (o, e) => UpdateFromMinBoxY();
@ -59,8 +57,6 @@ public partial class TranslateForm : Form
}; };
refForm = graph; refForm = graph;
this.ableRaw = ableRaw;
this.ableTrans = ableTrans;
double curX = 0, curY = 0; double curX = 0, curY = 0;
if (ableTrans is ITranslatableX transX) if (ableTrans is ITranslatableX transX)