Solving Issue #88, it has been spotted that format validation is scattered across various independent parts (e.g. PropertyGrid handlers vs. Unformat cylinders dialog vs. CDos::ModifyStdSectorValue method). This poses a risk of incoherent modifications of the disk. Instead, all format validations should be placed centrally in the CDos::ValidateFormat method - which further should be separated from CDos::ValidateFormatAndReportError method.
Similarly, the actual format change is scattered across various independent parts (again, PropertyGrid handlers vs. Format cylinders dialog vs. CDos::ChangeFormat method). This poses the same problem as above and should be centrally unified in the CDos::ChangeFormat method.
Solving Issue #88, it has been spotted that format validation is scattered across various independent parts (e.g. PropertyGrid handlers vs. Unformat cylinders dialog vs. CDos::ModifyStdSectorValue method). This poses a risk of incoherent modifications of the disk. Instead, all format validations should be placed centrally in the CDos::ValidateFormat method - which further should be separated from CDos::ValidateFormatAndReportError method.
Similarly, the actual format change is scattered across various independent parts (again, PropertyGrid handlers vs. Format cylinders dialog vs. CDos::ChangeFormat method). This poses the same problem as above and should be centrally unified in the CDos::ChangeFormat method.