Ejemplo n.º 1
0
        static ActionManager()
        {
            Actions = new List<Actions>();
            CurrentActions = new Actions();

            // init actions directory
            ActionsPath = $"{Environment.CurrentDirectory}/Actions/";
            if (!Directory.Exists(ActionsPath))
            {
                Directory.CreateDirectory(ActionsPath);
            }

            // init history directory
            HistoryPath = $"{Environment.CurrentDirectory}/History/";
            if (!Directory.Exists(HistoryPath))
            {
                Directory.CreateDirectory(HistoryPath);
            }
        }
Ejemplo n.º 2
0
 public static void ClearActions()
 {
     CurrentActions = new Actions();
     ShowCurrentActions();
 }