/// <summary> /// Occurs when a section is selected /// </summary> /// <param name="sender">The panel bar</param> /// <param name="e">PanelBarEventArgs</param> protected void MenuItemPanelBar_ItemClick(object sender, RadPanelBarEventArgs e) { ApplicationSectionEventArgs args = new ApplicationSectionEventArgs(); ApplicationModules selectedModule = (ApplicationModules)Enum.Parse(typeof(ApplicationModules), e.Item.Value); args.CurrentApplicationModule = selectedModule; args.DataFormType = ApplicationMenu.GetDataFormType(selectedModule); ApplicationSectionSelected(args); }
public void AppSectionControl_OnApplicationSectionSelected(ApplicationSectionEventArgs e) { ResetView(); if (e.DataFormType == typeof(ISinglePageDataForm)) { SingleDataFormControlCollectionManagerInstance.CurrentApplicationModule = e.CurrentApplicationModule; AppOperationSetControlInstance.SetUp(OperationSetUp.Save); SingleDataFormControlCollectionManagerInstance.Visible = true; AppOperationSetControlInstance.Visible = true; CurrentController = SingleDataFormControlCollectionManagerInstance.ToString(); } else if (e.DataFormType == typeof(IListingForm)) { ListingDataFormControlCollectionManagerInstance.CurrentApplicationModule = e.CurrentApplicationModule; AppOperationSetControlInstance.SetUp(OperationSetUp.New); ListingDataFormControlCollectionManagerInstance.Visible = true; AppOperationSetControlInstance.Visible = true; CurrentController = ListingDataFormControlCollectionManagerInstance.ToString(); ListingDataFormControlCollectionManagerInstance.LoadData(); } }