/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ultraExplorerBar1_ItemClick(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { if (sender != null) { SetExplorerBar(e); foreach (UltraExplorerBarGroup ugroup in ultraExplorerBar1.Groups) { foreach (UltraExplorerBarItem uitem in ugroup.Items) { if (uitem.Key == e.Item.Key) { if (donot_updatecheck) { return; } // this is the item we want uitem.Active = true; } else { if (donot_updatecheck) { return; } uitem.Active = false; } } } } }
public void SetExplorerBar(Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { if (!donot_updatecheck) { OnExplorerBar(e); } }
protected virtual void OnExplorerBar(Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { if ((explorerBar != null)) { explorerBar(this, e); } }
private void assettypesExplorerBar_ActiveItemChanged(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { // Display the sub-items _activeItem = e.Item; AssetType selectedCategory = e.Item.Tag as AssetType; RefreshList(selectedCategory.AssetTypeID); bnEditCategory.Enabled = true; }
private void userDataExplorerBar_ActiveItemChanged(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { // Display the sub-items _activeItem = e.Item; PickList selectedPickList = e.Item.Tag as PickList; RefreshList(selectedPickList); bnEditList.Enabled = true; }
private void userDataExplorerBar_ActiveItemChanged(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { // Display the sub-items _activeItem = e.Item; if (e.Item != null) { UserDataCategory selectedCategory = e.Item.Tag as UserDataCategory; RefreshList(selectedCategory); } bnEditUserCategory.Enabled = true; }
private void ultraExplorerBar1_ItemClick(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { }
/// <summary> /// Double-clicking an item effectively edits it /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void userDataExplorerBar_ItemDoubleClick(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { EditUserDataCategory(); }
private void ultraExplorerBar1_ItemClick(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { #region progress // show a progress bar in the status bar if (this.progressTimer != null && this.ProgressPanel != null && this.ProgressPanelLabel != null) { this.progressTimer.Stop(); this.progressPanel.ProgressBarInfo.Value = this.progressPanel.ProgressBarInfo.Minimum; this.progressPanelLabel.Text = string.Format("{0}: {1}%", Utilities.GetLocalizedString("Updating"), this.progressPanel.ProgressBarInfo.Value); this.progressTimer.Start(); } #endregion // progress frmContent frmContent = null; MdiTab mdiTab = null; // get the appropriate content form instance. If there is no instance yet, create one of the appropriate content type. switch (e.Item.Key) { case CUSTOMERS: mdiTab = this.ultraTabbedMdiManager1.TabFromKey(CUSTOMERS); frmContent = mdiTab == null ? new frmContent(OutlookCRM.Enums.ContentType.Customers) { MdiParent = this } : mdiTab.Form as frmContent; break; case ORDERS: mdiTab = this.ultraTabbedMdiManager1.TabFromKey(ORDERS); frmContent = mdiTab == null ? new frmContent(OutlookCRM.Enums.ContentType.Orders) { MdiParent = this } : mdiTab.Form as frmContent; break; case ORDERDETAILS: mdiTab = this.ultraTabbedMdiManager1.TabFromKey(ORDERDETAILS); frmContent = mdiTab == null ? new frmContent(OutlookCRM.Enums.ContentType.OrderDetails) { MdiParent = this } : mdiTab.Form as frmContent; break; case PRODUCTS: mdiTab = this.ultraTabbedMdiManager1.TabFromKey(PRODUCTS); frmContent = mdiTab == null ? new frmContent(OutlookCRM.Enums.ContentType.ProductSales) { MdiParent = this } : mdiTab.Form as frmContent; break; case CATEGORIES: mdiTab = this.ultraTabbedMdiManager1.TabFromKey(CATEGORIES); frmContent = mdiTab == null ? new frmContent(OutlookCRM.Enums.ContentType.SalesByCategory) { MdiParent = this } : mdiTab.Form as frmContent; break; case SHIPPERS: mdiTab = this.ultraTabbedMdiManager1.TabFromKey(SHIPPERS); frmContent = mdiTab == null ? new frmContent(OutlookCRM.Enums.ContentType.Shippers) { MdiParent = this } : mdiTab.Form as frmContent; break; default: mdiTab = this.ultraTabbedMdiManager1.TabFromKey(CONTENTEMPTY); frmContentEmpty frmContentEmpty = mdiTab == null ? new frmContentEmpty() { MdiParent = this } : mdiTab.Form as frmContentEmpty; if (frmContentEmpty != null) { frmContentEmpty.Show(); frmContentEmpty.Activate(); } break; } if (frmContent != null) { // show and activate the appropriate instance of the content form. frmContent.Show(); frmContent.Activate(); } }