// Reset subsrcriber lastChangeIndex private void btnResetSubscrLastindex_Click(object sender, EventArgs e) { var result = MessageBox.Show("Do you really want to reset the subscriber lastIdex?", "Warning", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { _synchController.ResetSubscriberLastIndex(_currentDatasetId); txbSubscrLastindex.Text = "0"; InitializeDatasetGrid(); } }
public static string ResetSubscriberIndex(int datasetId) { var synchController = new SynchController(); try { synchController.ResetSubscriberLastIndex(datasetId); } catch (Exception e) { Console.Out.WriteLine( " Exception ResetSubscriberIndex datasetId: " + datasetId + ", Desc: " + e.Message); return("ResetSubscriberIndex failed for dataset: " + datasetId); //throw; } return("ResetSubscriberIndex succeded for dataset: " + datasetId); }