// Declare a BarTender application variable
BarTender.Application btApp;
// Create a new instance of BarTender
btApp = new BarTender.Application();
// Set the BarTender application visible
btApp.Visible = true;
// Set the timeout value
btApp.LicenseServer.Timeout = 15;
// Set the alternate timeout value
btApp.LicenseServer.AlternateTimeout = 30;
// End the BarTender process
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);