BF2Statistics.SetupManager.ShowDatabaseSetupForm C# (CSharp) Method

ShowDatabaseSetupForm() public static method

Displays the Database configuration form for the selected database type (Stats or Gamespy)
public static ShowDatabaseSetupForm ( DatabaseMode Mode, Form Parent = null ) : void
Mode DatabaseMode The database type
Parent System.Windows.Forms.Form The parent window to Dialog over
return void
        public static void ShowDatabaseSetupForm(DatabaseMode Mode, Form Parent = null)
        {
            // Try and get the active form
            if (Parent == null) Parent = Form.ActiveForm;

            using (DatabaseConfigForm F = new DatabaseConfigForm(Mode))
            {
                if (Parent != null && Parent.IsHandleCreated && !Parent.InvokeRequired)
                    F.ShowDialog(Parent);
                else
                    F.ShowDialog();
            }
        }