private void btnInstancePrioritize_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"); // Sets the collection "00000002" to AboveNormal priority. b.Prioritize("00000002", Batch.Priority.AboveNormal); MessageBox.Show("Collection 00000002 AboveNormal priority - refresh the Controller"); b.Prioritize("00000002", Batch.Priority.Normal); MessageBox.Show("Collection 00000002 Normal priority - refresh the Controller"); // Dispose the batch instance // and disconnect from the CSM b.Dispose(); }