private void Options_CUD(object recordEventArgs) { SubscribeToDataStoreCUDEvents(); var registerError = TaskFactories.Init(); if (!string.IsNullOrWhiteSpace(registerError)) { // If there is any errors with registering the task types then close the main window // Assuming that this means the program will not be able to run successfully without the property tasks registered MessageBox.Show(registerError); this.Close(); return; } ReLoadTreeConfiguration(); }
/// <summary> /// Call this after the data store path has been set, or verified that it is set after startup. /// It takes care of registering everything for the new or pre-existing data store /// </summary> private void DataStorePathSet() { // Do any upgrades or maintenance against the db. if (!DBMaintenance.RunMaintenanceRoutines()) { this.Close(); } var registerError = TaskFactories.Init(); if (!string.IsNullOrWhiteSpace(registerError)) { // If there is any errors with registering the task types then close the main window // Assuming that this means the program will not be able to run successfully without the property tasks registered MessageBox.Show(registerError); this.Close(); return; } RegisterInternalCUDCallbacks(); }