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

            Profiles.Delete(profile);
            File.Delete(fileName);
            this.Load();
        }
Esempio 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();
        }