private void btnInstancePrioritizeMany_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"); // Prioritizes collections "00000002" and "00000003" with High priority b.PrioritizeMany(new string[] { "00000002", "00000003" }, Batch.Priority.High); MessageBox.Show("Collections 00000002 and 00000003 High priority - refresh the Controller"); b.PrioritizeMany(new string[] { "00000002", "00000003" }, Batch.Priority.Normal); MessageBox.Show("Collections 00000002 and 00000003 Normal priority - refresh the Controller"); // Dispose the batch instance // and disconnect from the CSM b.Dispose(); }