Exemplo n.º 1
0
 public ActionRun(ActionController ed, ActionFileList afl)
 {
     restarttick.Interval = 100;
     restarttick.Tick    += Tick_Tick;
     actioncontroller     = ed;
     actionfilelist       = afl;
 }
Exemplo n.º 2
0
        public void ReLoad(bool completereload = true)        // COMPLETE reload..
        {
            if (completereload)
            {
                actionfiles = new ActionFileList();     // clear the list
            }
            ErrorList = actionfiles.LoadAllActionFiles(EDDOptions.Instance.ActionsAppDirectory());

            AdditionalChecks(ref ErrorList);

            actionrunasync = new ActionRun(this, actionfiles);        // this is the guy who runs programs asynchronously
        }
Exemplo n.º 3
0
        public void ReLoad(bool completereload = true)        // COMPLETE reload..
        {
            if (completereload)
            {
                actionfiles = new ActionFileList();     // clear the list
            }
            ErrorList = actionfiles.LoadAllActionFiles(AppFolder);

            AdditionalChecks(ref ErrorList);

            actionrunasync = new ActionRun(this, actionfiles);        // this is the guy who runs programs asynchronously
            ActionConfigureKeys();
            VoiceLoadEvents();
        }
Exemplo n.º 4
0
        public void ReLoad(bool completereload = true)        // COMPLETE reload..
        {
            actionfiles?.CloseDown();

            if (completereload)
            {
                actionfiles = new ActionFileList();     // clear the list
            }
            frontierbindings.LoadBindingsFile(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Frontier Developments", "Elite Dangerous", "Options", "Bindings"), true);

            ErrorList = actionfiles.LoadAllActionFiles(EDDOptions.Instance.ActionsAppDirectory());

            AdditionalChecks(ref ErrorList);

            actionrunasync = new ActionRun(this, actionfiles);        // this is the guy who runs programs asynchronously
        }
Exemplo n.º 5
0
        public void ReLoad(bool completereload = true)         // COMPLETE reload..
        {
            if (completereload)
            {
                actionfiles = new ActionFileList();     // clear the list
            }
            string errlist = actionfiles.LoadAllActionFiles(AppFolder);

            if (errlist.Length > 0)
            {
                ExtendedControls.MessageBoxTheme.Show("Failed to load files\r\n" + errlist, "WARNING!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            actionrunasync = new ActionRun(this, actionfiles);        // this is the guy who runs programs asynchronously
            ActionConfigureKeys();
        }