private void btnImport_Click(object sender, EventArgs e) { using (fileManipulator fm = new fileManipulator()) { fm.import(); } this.Close(); }
/// <summary> /// Prompts the user for a selected file to import. Attempts its best at itterating through the file to find the data. /// If the version does not match, the program will still try and read the file to change the settings. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void mnuFileImport_Click(object sender, EventArgs e) { using (fileManipulator fm = new fileManipulator()) { fm.import(); } validateSettings(); }