Added a call to activate when the setup dialog is shown.

This commit is contained in:
2019-06-04 19:52:44 +01:00
parent 675ed08425
commit 5501e97b7e
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -63,5 +63,10 @@ namespace ASCOM.Meade.net
return profileProperties;
}
private void SetupDialogForm_Shown(object sender, EventArgs e)
{
Activate();
}
}
}
+1
View File
@@ -102,6 +102,7 @@ namespace ASCOM.Meade.net
this.MinimizeBox = false;
this.Name = "SetupDialogForm";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.Shown += new System.EventHandler(this.SetupDialogForm_Shown);
((System.ComponentModel.ISupportInitialize)(this.picASCOM)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
+1 -1
View File
@@ -221,7 +221,7 @@ namespace ASCOM.Meade.net
using (SetupDialogForm F = new SetupDialogForm())
{
F.SetProfile(profileProperties);
var result = F.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{