private void btnSaveSelected_Click(object sender, EventArgs e) { // If Save Selected button is selected, set boolean to false WriteDataToFile = false; // Write data to file ThisDataToFile DataToFile = new ThisDataToFile(WriteDataToFile, Model); }
private void button2_Click(object sender, EventArgs e) { // If Save All button is selected, set boolean to true WriteDataToFile = true; // Write data to file ThisDataToFile DataToFile = new ThisDataToFile(WriteDataToFile, Model); }