コード例 #1
0
 protected virtual void SetViewData(ucBaseView controlView)
 {
     controlView.Dock = DockStyle.Fill;
     controlView.BringToFront();
     this._ucbaseview = controlView;
     this.pnlViewData.Controls.Clear();
     this.pnlGroupView.Height = controlView.Height + 45;
     this.pnlViewData.Controls.Add(controlView);
     this._ucbaseview.SaveComplete += new SaveCompleteEventHander(this.ActionSaveComplete);
 }
コード例 #2
0
 public ucBaseBasicView()
 {
     base.SetWaitDialogCaption("Đang khởi tạo dữ liệu.");
     this.InitializeComponent();
     this._search = false;
     //this.dataSource = new List<object>();
     this._ucbaseview                  = new ucBaseView();
     this.ucToolBar.ButtonSaveNew      = BarItemVisibility.Always;
     this.ucToolBar.ButtonCancel       = BarItemVisibility.Always;
     this.ucToolBar.bbiSaveNew.Enabled = false;
     this.ucToolBar.bbiCancel.Enabled  = false;
     this.DisableMenu(true);
 }