ASCOM.cam85_v03.Camera.SetupDialog C# (CSharp) Метод

SetupDialog() публичный метод

Displays the Setup Dialog form. If the user clicks the OK button to dismiss the form, then the new settings are saved, otherwise the old values are reloaded. THIS IS THE ONLY PLACE WHERE SHOWING USER INTERFACE IS ALLOWED!
public SetupDialog ( ) : void
Результат void
        public void SetupDialog()
        {
            // show camera settings form
            if (IsConnected) return;
            using (SetupDialogForm F = new SetupDialogForm())
            {
                var result = F.ShowDialog();
                if (result == System.Windows.Forms.DialogResult.OK)
                {
                    // Persist device configuration values to the ASCOM Profile store
                    WriteProfile();
                }
            }
        }