MATLABfromCSharp.MainControl.setAFDatabase C# (CSharp) Method

setAFDatabase() public method

Sets the AFDatabase that the MainControl will use.
public setAFDatabase ( string currentDatabase ) : void
currentDatabase string The name of the AFDatabase.
return void
        public void setAFDatabase(string currentDatabase)
        {
            if (currentAfdb == null || currentDatabase != currentAfdb.Name)
            {
                //Connect to Server; otherwise will be null.
                currentAfdb = currentSystem.Databases[currentDatabase];
            }
        }