private void btnInstanceReject_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"); // Gets the collection "00000001" ITisCollectionData collData = b.Get("00000001"); // Reject the collection b.Reject(collData); MessageBox.Show("collection 00000001 is in Reject, please refresh the controller and drag it back"); // Dispose the batch instance // and disconnect from the CSM b.Dispose(); }