Exemple #1
0
        public ScriptReloadResult Initialize(bool initialLoad)
        {
            var result = ScriptReloadResult.Success;

            var exception = LoadPlugins(initialLoad);

            if (exception != null)
            {
                var scriptReloadMessage = new ScriptReloadMessage(exception, !initialLoad);
                scriptReloadMessage.ShowDialog();

                result = scriptReloadMessage.Result;
            }

            return(result);
        }
Exemple #2
0
        public ScriptReloadResult Initialize(bool initialLoad)
        {
            var result = ScriptReloadResult.Success;

            try
            {
                LoadPlugins(initialLoad);
            }
            catch (Exception ex)
            {
                var scriptReloadMessage = new ScriptReloadMessage(ex, !initialLoad);
                scriptReloadMessage.ShowDialog();

                result = scriptReloadMessage.Result;
            }

            return(result);
        }