private void FormCloseBtn_Click(object sender, EventArgs e) { string del = Properties.Settings.Default.DeleteIconPath; if (File.Exists(del) || !string.IsNullOrEmpty(del)) { File.Delete(Properties.Settings.Default.DeleteIconPath); Properties.Settings.Default.DeleteIconPath = string.Empty; string ext = Path.GetExtension(Properties.Settings.Default.CollegeIcon); string newName = @"..\..\Resources\icon_img" + ext; string newFileDel = Properties.Settings.Default.CollegeIcon; File.Copy(newFileDel, newName, true); Properties.Settings.Default.CollegeIcon = newName; Properties.Settings.Default.Save(); File.Delete(newFileDel); } ClassCall.openHomePage(); }
private void FormCloseBtn_Click(object sender, EventArgs e) { ClassCall.openHomePage(); }