private void btnInstanceDelete_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Manually export collection 00000001 first through the controller, before proceeding");

            // Create a new Batch instance
            // Logs onto the CSM with "AdvancedDemo" application
            // and "FormId" station

            Batch b = new Batch("AdvancedDemo", "FormId");

            // Gets the collection "00000001"

            ITisCollectionData collData = b.Get("00000001");

            // Deletes the collection
            // even if it is locked
            b.Delete(collData);

            MessageBox.Show("collection 00000001 is gone");

            // Dispose the batch instance
            // and disconnect from the CSM

            b.Dispose();
        }