private bool CompileBg(string code, CodeEditorParameters cedp = null)
        {
            CodeEditorParameters cep = Tag as CodeEditorParameters;

            System.CodeDom.Compiler.CompilerResults cr = NetDasm.Compile(code, cep.File, cep.References);
            compilerErrors.ItemsSource      = NetDasm.GetCompilerErrors(cr);
            compilerErrorsBorder.Background = new System.Windows.Media.SolidColorBrush(compilerErrors.Items.Count > 0 ? System.Windows.Media.Colors.OrangeRed : System.Windows.Media.Colors.LightGray);
            return(compilerErrors.ItemsSource == null);
        }
 private bool CompileBg(string code, CodeEditorParameters cedp = null)
 {
     CodeEditorParameters cep = Tag as CodeEditorParameters;
     System.CodeDom.Compiler.CompilerResults cr = NetDasm.Compile(code, cep.File, cep.References);
     compilerErrors.ItemsSource = NetDasm.GetCompilerErrors(cr);
     compilerErrorsBorder.Background = new System.Windows.Media.SolidColorBrush(compilerErrors.Items.Count > 0 ? System.Windows.Media.Colors.OrangeRed : System.Windows.Media.Colors.LightGray);
     return (compilerErrors.ItemsSource == null);
 }