SLICEDBMerge is a Windows Forms desktop application that provides a GUI for merging sensor databases. It allows users to select a source sensor database directory and a destination database directory, view the sensors in each, select specific sensors from the source, and merge them (along with their calibration data) into the destination database. The application is built using ComponentOne's C1FlexGrid for data display and depends on a proprietary DTS.SensorDB library for sensor database operations.
-
void btnBrowse_Click(object sender, EventArgs e) - Opens a FolderBrowserDialog to select the source directory. On success, populates tbSourceLocation.Text and calls LoadSourceDG().
-
void btnDestinationBrowse_Click(object sender, EventArgs e) - Opens a FolderBrowserDialog to select the destination directory. On success, populates tbDestination.Text and calls LoadDestinationDG().
-
void button1_Click(object sender, EventArgs e) - Executes the merge operation. Iterates through dgSource rows, and for each selected row (where column index 1 is true), adds the SensorData to _destination, saves, retrieves the latest calibration via _sourceDB.GetLatestCalibrationBySerialNumber(), adds the calibration, and saves again. Collects errors and displays them in a message box. Refreshes the destination grid upon completion.
-
void lbSelectAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - Sets column index 1 to true for all rows in dgSource (starting at index 1).
-
void lbInvertSelection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - Toggles the boolean value at column index 1 for all rows in dgSource (starting at index 1).
-
void lbClearAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - Sets column index