public void Delete(string profile) { var fileName = Profiles.GetFileName(profile); Profiles.Delete(profile); File.Delete(fileName); this.Load(); }
public void Delete(string profile) { var fileName = Profiles.GetFileName(profile); try { Profiles.Delete(profile); File.Delete(fileName); this.Load(); } catch (Exception e) { Logger.Write(this, LogLevel.Warn, "Failed to delete configuration: {0}", e.Message); } this.OnSaved(); }