Exemple #1
0
 private void EntHistoryTabFrame_Load(object sender, EventArgs e)
 {
     this.model       = new OrderTemplatePithyTreeViewModel();
     this.BannerDTO   = this.Context["ent4BannerDTO"] as Ent4BannerDTO;
     this.BaseContext = this.Context["context"] as BaseContext;
     model.getTemplateClassIfication(BannerDTO);
     this.xapFormControl.AddRender(setOpOrderTemplateTreeViewOrderAndVisible());
 }
        void Init()
        {
            this.ComplexOrderRenders = new List <ComplexOrderAssist>();
            this._orderLineRenders   = new List <OrderLineRender>();
            this.model                 = new OrderTemplatePithyTreeViewModel();
            this.ContainerControl      = new XAPScrollBarPanel();
            this.ContainerControl.Dock = DockStyle.Fill;
            this.AddRender(ContainerControl);


            _emptyRender          = new OrderEmptyRender();
            _emptyRender.TipText  = "未检索到相关数据";
            _emptyRender.Location = new Point(30, 10);
            _emptyRender.Size     = new Size(200, OrderConstAssist.OrderRenderHeight);
            _emptyRender.Visible  = false;
            this.ContainerControl.AddRender(_emptyRender);
        }