private void btnInstanceReleaseMany_Click(object sender, EventArgs e) { // Create a new Batch instance // Logs onto the CSM with "AdvancedDemo" application // and "FormId" station Batch b = new Batch("AdvancedDemo", "FormId"); // Holds the collections "00000002" and "00000003" b.HoldMany(new string[] { "00000002", "00000003" }); MessageBox.Show("Collections 00000002 and 00000003 on Hold - refresh the Controller"); // Releases the collections "00000002" and "00000003" b.ReleaseMany(new string[] { "00000002", "00000003" }); MessageBox.Show("Collections 00000002 and 00000003 released - refresh the Controller"); // Dispose the batch instance // and disconnect from the CSM b.Dispose(); }