Added a call to activate when the setup dialog is shown.
This commit is contained in:
@@ -63,5 +63,10 @@ namespace ASCOM.Meade.net
|
||||
|
||||
return profileProperties;
|
||||
}
|
||||
|
||||
private void SetupDialogForm_Shown(object sender, EventArgs e)
|
||||
{
|
||||
Activate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+1
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user