Пример #1
0
        public AssNewWorkEnclosureQuery( )
        {
            InitializeComponent( );

            _bll = new LineProductMesBll.Bll.AssNewWorkEnclosureBll( );

            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, View1, View3, View4, View5 });
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, View1, View3, View4, View5 });
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

            fi.SetValue(null, new DrawXPaint( ));

            Task task = new Task(InitData);

            task.Start( );
        }
Пример #2
0
        public FormAssNewList(DataTable table)
        {
            InitializeComponent( );

            _bll = new LineProductMesBll.Bll.AssNewWorkEnclosureBll( );

            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

            fi.SetValue(null, new DrawXPaint( ));


            gridControl1.DataSource = table;
            gridView1.BestFitColumns( );
        }