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); } }
public static void ClearActions() { CurrentActions = new Actions(); ShowCurrentActions(); }