private void navBarControl1_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { navBarControl1.ActiveGroup.ControlContainer.Controls.Add(listBoxWordbook); //treeWordbook.BringToFront(); ShowCurrentSortDictionaries(navBarControl1.ActiveGroup.Caption); }
void navBarControl1_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { if (navBarControl1.OptionsNavPane.NavPaneState == NavPaneState.Collapsed) { ShowActiveGroupPopup(); } }
/// <summary> /// Evento disparado quando um Group do Barra de Navegação é reduzido /// </summary> /// <param name="sender">NavBarGroup</param> /// <param name="e">NavBarGroupEventArgs</param> private void navBarControlProjetos_GroupCollapsed(object sender, NavBarGroupEventArgs e) { List <CriteriaOperator> criterias = new List <CriteriaOperator>(); foreach (NavBarGroup navGroupItens in e.Group.Collection) { if (navGroupItens.Expanded) { foreach (NavBarItemLink itemColaborador in navGroupItens.ItemLinks) { criterias.Add(CriteriaOperator.Parse("Periodo.Colaborador.Oid = ?", itemColaborador.Item.Tag)); } } } if (criterias.Count > 0) { Ferias.Filter = CriteriaOperator.Or(criterias); } else { //colocando 1=2 não traz nada Ferias.Filter = CriteriaOperator.Parse("1=2"); } schedulerStorage1.RefreshData(); schedulerControl1.RefreshData(); }
protected void nbMenu_GroupDataBound(object source, NavBarGroupEventArgs e) { IHierarchyData hierarchyData = (e.Group.DataItem as IHierarchyData); XmlElement xmlElement = hierarchyData.Item as XmlElement; XmlAttributeCollection attributes = xmlElement.Attributes; e.Group.Expanded = false; foreach (NavBarItem item in e.Group.Items) { if (item.Selected) { e.Group.Expanded = true; break; } } if (xmlElement.Attributes["Caption"] != null) e.Group.Name = xmlElement.Attributes["Caption"].Value; else e.Group.Name = xmlElement.Attributes["Text"].Value; if (xmlElement.Attributes["Visible"] != null && xmlElement.Attributes["Visible"].Value.ToLower() == "false") e.Group.Visible = false; if (e.Group.Expanded && titleImageUrl == "") this.titleImageUrl = xmlElement.Attributes["ImageUrl"] != null ? xmlElement.Attributes["ImageUrl"].Value : ""; }
protected void nbMenu_GroupDataBound(object source, NavBarGroupEventArgs e) { IHierarchyData hierarchyData = (e.Group.DataItem as IHierarchyData); XmlElement xmlElement = hierarchyData.Item as XmlElement; XmlAttributeCollection attributes = xmlElement.Attributes; if (xmlElement.Attributes["Caption"] != null) { e.Group.Name = xmlElement.Attributes["Caption"].Value; } else { e.Group.Name = xmlElement.Attributes["Text"].Value; } if (xmlElement.Attributes["Visible"] != null && xmlElement.Attributes["Visible"].Value.ToLower() == "false") { e.Group.Visible = false; } if (e.Group.Expanded && TitleImageUrl == "") { this.titleImageUrl = xmlElement.Attributes["ImageUrl"] != null ? xmlElement.Attributes["ImageUrl"].Value : ""; } }
private void navBar_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { if (!_isLocked) { _isLocked = true; AutoSelectFirstItemInGroup(((NavBarNavigationControl)e.Group.NavBar).GroupToActionItemWrapperMap[e.Group].ActionItem); } }
private void navBarControl1_GroupExpanded(object sender, NavBarGroupEventArgs e) { if (e.Group != null) { long codigo_tipo_componente = (e.Group as GrupoBarNav).TipoComponente; int estado_componente = (e.Group as GrupoBarNav).EstadoComponente; OnGrupoClick(codigo_tipo_componente, estado_componente); } }
protected void ASPxNavBar1_GroupDataBound(object source, NavBarGroupEventArgs e) { IHierarchyData hierarchyData = (e.Group.DataItem as IHierarchyData); XmlElement xmlElement = hierarchyData.Item as XmlElement; XmlAttributeCollection attributes = xmlElement.Attributes; if (xmlElement.Attributes["View"] != null) { e.Group.Text = xmlElement.Attributes["View"].Value; } }
void navBar_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { var navPaneModuleType = (ModuleType)e.Group.Tag; Control moduleControl = GetNavPaneModule(navPaneModuleType); moduleControl.Dock = DockStyle.Fill; e.Group.ControlContainer.Controls.Add(moduleControl); var collapsedGroupModuleType = ViewModel.GetNavPaneModuleType(navPaneModuleType, true); e.Group.CollapsedNavPaneContentControl = GetNavPaneModule(collapsedGroupModuleType); }
private void NavBarActiveGroupChangedHandler(object sender, NavBarGroupEventArgs e) { var caption = e.Group.Caption; foreach (Control control in splitContainerControl.Panel2.Controls) { if (control is XtraUserControl || control is GridControl) { control.Visible = control.Tag.ToString() == caption; } } }
/// <summary> /// 在激活的Group里打开第一条记录的窗口 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NavSystemFun_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { if (null == sender || null == e || null == e.Group) { return; } foreach (Form fr in this.MdiChildren) { fr.Close(); } if (e.Group.ItemLinks.Count > 0) { this.OpenFrm(e.Group.ItemLinks[0]); } }
private void navBarControl1_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { if (navBarControl1.ActiveGroup.Caption == "ข้อมูลลูกหนี้") { LoadData(); creditGridControl.Visible = true; paidGridControl.Visible = false; } else { LoadDataPaid(); creditGridControl.Visible = false; paidGridControl.Visible = true; } }
private void navBarControl_GroupCollapsed(object sender, NavBarGroupEventArgs e) { int count = 0; foreach (NavBarGroup group in navBarControl.Groups) { if (group.Expanded) { count++; } } if (count == 0) { gridControl1.DataSource = pc.getTable(); } }
private void navBarControl_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { //object data = GetModuleData((NavBarGroupTagObject)e.Group.Tag); NavBarGroupTagObject groupObject = e.Group.Tag as NavBarGroupTagObject; if (groupObject == null) { return; } if (groupObject.ModuleType == null) { return; } modulesNavigator.ChangeNavBarGroup(groupObject); }
private void navBarControl1_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { var navBar = sender as NavBarControl; if (navBar == null) { return; } Cursor.Current = Cursors.WaitCursor; if (!e.Group.Expanded) { e.Group.Expanded = true; } if (e.Group.Caption == "") { } }
private void navBarControl_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { mainSplitContainer.Panel2.Controls.Clear(); switch (e.Group.Caption) { case "Kundenverwaltung": mainSplitContainer.Panel2.Controls.Add(CustomerControl); break; case "Auftragsverwaltung": var a = new BookingControl(); mainSplitContainer.Panel2.Controls.Add(BookingControl); a.Dock = DockStyle.Fill; break; case "Voreinstellungen": break; } }
void navBar_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { var navPaneModuleType = (ModuleType)e.Group.Tag; if(ViewModel.SelectedNavPaneModuleType != navPaneModuleType) ViewModel.SelectedModuleType = ViewModel.GetMainModuleType(navPaneModuleType); Control moduleControl = GetNavPaneModule(navPaneModuleType); moduleControl.Dock = DockStyle.Fill; e.Group.ControlContainer.Controls.Add(moduleControl); var collapsedGroupModuleType = ViewModel.GetNavPaneModuleType(navPaneModuleType, true); e.Group.CollapsedNavPaneContentControl = GetNavPaneModule(collapsedGroupModuleType); }
protected void nbMenu_GroupDataBound(object source, NavBarGroupEventArgs e) { IHierarchyData hierarchyData = (e.Group.DataItem as IHierarchyData); XmlElement xmlElement = hierarchyData.Item as XmlElement; XmlAttributeCollection attributes = xmlElement.Attributes; if (xmlElement.Attributes["Caption"] != null) e.Group.Name = xmlElement.Attributes["Caption"].Value; else e.Group.Name = xmlElement.Attributes["Text"].Value; if (xmlElement.Attributes["Visible"] != null && xmlElement.Attributes["Visible"].Value.ToLower() == "false") e.Group.Visible = false; if (e.Group.Expanded && TitleImageUrl == "") this.titleImageUrl = xmlElement.Attributes["ImageUrl"] != null ? xmlElement.Attributes["ImageUrl"].Value : ""; }
private void navBar_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { if (!isLocked) { isLocked = true; AutoSelectFirstItemInGroup(((NavBarNavigationControl)e.Group.NavBar).GroupToActionItemWrapperMap[e.Group].ActionItem); } }
private void NavBar_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { SowModule?.Invoke(e.Group); }
protected void ASPxNavBar1_GroupDataBound(object source, NavBarGroupEventArgs e) { NavBarItem btnItem = e.Group.Items.Add(); btnItem.Template = LoadControl("WebUserControl.ascx") as ITemplate; }
/// <summary> /// 在激活的Group里打开第一条记录的窗口 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NavSystemFun_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { if (null == sender || null == e || null == e.Group) return; foreach (Form fr in this.MdiChildren) fr.Close(); if (e.Group.ItemLinks.Count > 0) this.OpenFrm(e.Group.ItemLinks[0]); }
/// <summary> /// Group 展开事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void NavMain_GroupExpanded(object sender, NavBarGroupEventArgs e) { IOpenForm OpenGroupExpaned = new YIESysOpenForm(); OpenGroupExpaned.NavGroupExpanded(e.Group.Tag.ToString()); }
//刷新模块信息 void navBarControl1_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { UpdateModuleInfo(); }
private void NavBar_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { SowModule(e.Group); }
private void navBarControl1_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { // hardcode here navBarControl1.LinkSelectionMode = e.Group == navGroupInvoice ? LinkSelectionModeType.OneInGroupAndAllowAutoSelect : LinkSelectionModeType.None; }
private void navBarControl1_ActiveGroupChanged(object sender, NavBarGroupEventArgs e) { object data = GetModuleData((NavBarGroupTagObject)e.Group.Tag); _modulesNavigator.ChangeGroup(e.Group, data); }
//模块展开,根据模块获取功能列表 private void navBarControl1_GroupExpanded(object sender, NavBarGroupEventArgs e) { UpdateModule(navBarControl1.ActiveGroup); }