private void Reload_Click(object sender, RoutedEventArgs e) { try { _script.Unload(); _package.Compile(); _script = _session.CreateScript("merged", _package.ScriptContent); _script.Message += Script_Message; _script.Load(); } catch (Exception ex) { Trace.WriteLine(ex.Message); Messages.Add(ScriptMessage.CreateError(ex.Message)); ScrollViewDown(); } }