private static void LoadJsonFromShortcuts()
        {
            Config config     = ShortcutListArea.GetConfig();
            string configJson = Serializer.SerializeConfig(config);

            JsonViewManager.SetJson(configJson);
        }
Exemplo n.º 2
0
        public static void GenerateShortcutsButtonPressed(object sender, RoutedEventArgs args)
        {
            Config          config = ShortcutListArea.GetConfig();
            ValidationError err    = config.IsValid();

            if (err != null)
            {
                Wind.ValiationError.Visibility = Visibility.Visible;
                Wind.ValidationErrorText.Text  = $"Error: \"{err.Shortcut.Name}\" {err.Error}";
                return;
            }
            else
            {
                Wind.ValiationError.Visibility = Visibility.Collapsed;
            }

            Builder.Run(config);
        }