Пример #1
0
        protected void LoadUserControls()
        {
            var viewMode = "GridView";// DemoUtils.IsEmployeeGridViewMode ? "GridView" : "CardView";

            this.masterUC = LoadControl(string.Format("~/UserControls/ViewControls/BayiTanimlari_{0}_Master.ascx", viewMode)) as MasterUserControl;
            this.detailUC = LoadControl(string.Format("~/UserControls/ViewControls/BayiTanimlari_{0}_Detail.ascx", viewMode)) as DetailUserControl;

            MasterContainer.Controls.Add(MasterUC);
            DetailsCallbackPanel.Controls.Add(DetailUC);
        }
Пример #2
0
        protected void LoadUserControls()
        {
            var viewMode = "GridView";// DemoUtils.IsEmployeeGridViewMode ? "GridView" : "CardView";

            this.masterUC = LoadControl(string.Format("~/UserControls/ViewControls/HedefSatisDurumu_{0}_Master.ascx", viewMode)) as MasterUserControl;
            this.detailUC = LoadControl(string.Format("~/UserControls/ViewControls/HedefSatisDurumu_{0}_Detail.ascx", viewMode)) as DetailUserControl;

            MasterUC.BaslangicTarihi = Convert.ToDateTime(ASPxDateEdit1.Value);
            MasterUC.BitisTarihi     = Convert.ToDateTime(ASPxDateEdit2.Value);

            MasterContainer.Controls.Add(MasterUC);
            DetailsCallbackPanel.Controls.Add(DetailUC);
        }