Esempio n. 1
0
 public CodeDomHostLoader(String strFileName)
 {
     FileName = strFileName;
     _trs     = new TypeResolutionService();
 }
Esempio n. 2
0
        public TypeResolutionService( )
        {
            if (ht == null)
            {
                ht = new Hashtable();
            }
            if (CurrentService == null)
            {
                CurrentService = this;
            }
            else
            {
                return;
            }

            InitTypesFromAssembly("ABCControls.dll");

            AddType(typeof(System.Drawing.Size));
            AddType(typeof(System.Drawing.Point));
            AddType(typeof(System.Drawing.Color));
            AddType(typeof(System.Drawing.Bitmap));
            AddType(typeof(System.Drawing.Image));
            AddType(typeof(System.Drawing.Icon));
            AddType(typeof(System.Drawing.Font));
            AddType(typeof(System.Drawing.FontFamily));

            AddType(typeof(DevExpress.XtraEditors.XtraForm));
            AddType(typeof(DevExpress.XtraEditors.XtraForm));

            AddType(typeof(DevExpress.XtraEditors.GroupControl));
            AddType(typeof(DevExpress.XtraTab.XtraTabControl));
            AddType(typeof(System.Windows.Forms.FlowLayoutPanel));
            AddType(typeof(DevExpress.XtraEditors.PanelControl));
            AddType(typeof(DevExpress.XtraEditors.RadioGroup));

            AddType(typeof(DevExpress.XtraEditors.Controls.EditorButton));
            AddType(typeof(DevExpress.XtraEditors.Controls.EditorButtonCollection));
            AddType(typeof(DevExpress.XtraEditors.ButtonEdit));
            AddType(typeof(DevExpress.XtraEditors.DateControl));
            AddType(typeof(DevExpress.XtraEditors.DateEdit));
            AddType(typeof(DevExpress.XtraEditors.CalcEdit));
            AddType(typeof(DevExpress.XtraEditors.CheckEdit));
            AddType(typeof(DevExpress.XtraEditors.LabelControl));
            AddType(typeof(DevExpress.XtraEditors.TextEdit));
            AddType(typeof(DevExpress.XtraEditors.MemoEdit));
            AddType(typeof(DevExpress.XtraEditors.MemoExEdit));
            AddType(typeof(DevExpress.XtraEditors.RichTextEdit));

            AddType(typeof(DevExpress.XtraRichEdit.RichEditControl));

            AddType(typeof(DevExpress.XtraEditors.ComboBox));
            AddType(typeof(DevExpress.XtraEditors.ComboBoxEdit));
            AddType(typeof(DevExpress.XtraEditors.LookUpEdit));
            //  AddType( typeof( DevExpress.XtraEditors.GridLookUpEdit ) );

            AddType(typeof(DevExpress.XtraGrid.GridControl));
            AddType(typeof(DevExpress.XtraGrid.Views.Grid.GridView));
            AddType(typeof(DevExpress.XtraGrid.Views.Base.BaseView));

            InitTypesFromAssembly(typeof(System.Windows.Forms.Button)); //System.Windows.Form
            InitTypesFromAssembly(typeof(System.Drawing.Image));        //System.Drawing

            InitTypesFromAssembly("DevExpress.Utils.v12.1.dll");
            InitTypesFromAssembly("DevExpress.Data.v12.1.dll");
            InitTypesFromAssembly("DevExpress.XtraEditors.v12.1.dll");
            //      InitTypesFromAssembly( "DevExpress.XtraEditors.v12.1.Design.dll" );
            InitTypesFromAssembly("DevExpress.XtraBars.v12.1.dll");
            InitTypesFromAssembly("DevExpress.XtraGrid.v12.1.dll");
            InitTypesFromAssembly("DevExpress.XtraNavbar.v12.1.dll");
            InitTypesFromAssembly("DevExpress.Printing.v12.1.Core.dll");
            InitTypesFromAssembly("DevExpress.RichEdit.v12.1.Core.dll");
            InitTypesFromAssembly("DevExpress.XtraTreeList.v12.1.dll");
            InitTypesFromAssembly("DevExpress.XtraLayout.v12.1.dll");

            InitTypesFromAssembly(typeof(System.ComponentModel.Design.DesignSurface)); //System.Design
            InitTypesFromAssembly(typeof(System.Enum));                                //System
            InitTypesFromAssembly(typeof(System.Uri));                                 //System
            InitTypesFromAssembly(typeof(System.Drawing.Design.ToolboxItem));          //System.Drawing.Design
            InitTypesFromAssembly(typeof(System.Data.DataRow));                        //System.Data
            InitTypesFromAssembly(typeof(System.TimeZoneInfo));                        //System.Core
        }
Esempio n. 3
0
 public CodeDomHostLoader( )
 {
     _trs = new TypeResolutionService();
 }