Exemplo n.º 1
0
        public void Delete(string profile)
        {
            var fileName = Profiles.GetFileName(profile);

            Profiles.Delete(profile);
            File.Delete(fileName);
            this.Load();
        }
Exemplo n.º 2
0
        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();
        }