Ejemplo n.º 1
0
        public void DeleteTheme(Guid id)
        {
            _themes.Delete(id.ToString());

            foreach (var profile in GetShellProfiles())
            {
                if (profile.TerminalThemeId == id)
                {
                    profile.TerminalThemeId = Guid.Empty;
                    SaveShellProfile(profile);
                }
            }

            ThemeDeleted?.Invoke(this, id);
        }
Ejemplo n.º 2
0
 public void OnReady()
 {
     try
     {
         var result = ((TvEngine)_engine).OnReady(out bool more);
         if (result > -1)
         {
             ThemeDeleted?.Invoke(result);
         }
     }
     catch (TimeoutException exc)
     {
         PlatformManager.Instance.ShowMessage(string.Format("Ошибка связи: {0}", exc.Message));
     }
     catch (CommunicationException exc)
     {
         PlatformManager.Instance.ShowMessage(string.Format("Ошибка связи: {0}", exc.Message));
     }
 }