/// <summary> /// Constructs a MessageBrowserCollection, populating with the provided collection. /// </summary> /// <param name="messageBrowserCollection">Collection to build constructed collection from.</param> public MessageBrowserCollection(MessageBrowserCollection messageBrowserCollection) { for (int i = 0; i < messageBrowserCollection.Count - 1; i++) { string key = messageBrowserCollection.BaseGetKey(i); base.BaseAdd(key, messageBrowserCollection[i]); } }
/// <summary> /// Handles event fired when a MessageBrowser is removed from the main MessageBrowserCollection. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MessageBrowserCollection_ItemRemoved(object sender, MessageBrowserCollection.ItemMovedEventArgs e) { e.Item.Dispose(); base.TaskManager.MenuStateManger.SetAllMenusState(); }
/// <summary> /// Handles event fired when a MessageBrowser is added to the main MessageBrowserCollection. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MessageBrowserCollection_ItemAdded(object sender, MessageBrowserCollection.ItemMovedEventArgs e) { e.Item.SelectedMessageChanged += new SelectedMessageChangedEvent(MessageBrowser_SelectedMessageChanged); e.Item.BeforeMessageListLoaded += new VisualizableProcessEvent(MessageBrowser_BeforeMessageListLoaded); e.Item.AfterMessageListLoaded += new VisualizableProcessEvent(MessageBrowser_AfterMessageListLoaded); e.Item.MessageLoadException += new MessageLoadExceptionEvent(MessageBrowser_MessageLoadException); e.Item.MouseDown += new MouseEventHandler(MessageBrowser_MouseDown); e.Item.MessagesDragDrop += new MessagesDragDropEvent(Item_MessagesDragDrop); }
/// <summary> /// Constructs a MessageBrowserCollection, populating with the provided collection. /// </summary> /// <param name="messageBrowserCollection">Collection to build constructed collection from.</param> public MessageBrowserCollection(MessageBrowserCollection messageBrowserCollection) { for(int i = 0; i < messageBrowserCollection.Count - 1; i ++) { string key = messageBrowserCollection.BaseGetKey(i); base.BaseAdd(key, messageBrowserCollection[i]); } }
public Enumerator(MessageBrowserCollection col) { _col = col; _index = -1; }
/// <summary> /// Constructs the object with all of the environments primary controls. /// </summary> /// <param name="qSetExplorer">Primary QSetExplorer.</param> /// <param name="qSetMonitor">Primary QSetMonitor.</param> /// <param name="propertyGrid">Primary property grid.</param> /// <param name="messageViewer">Primary MessageViewer.</param> /// <param name="documentContainer">Primary DocumentContainer.</param> /// <param name="images">Images component.</param> public PrimaryControls( QSetExplorer qSetExplorer, QSetMonitor qSetMonitor, PropertyGrid propertyGrid, MessageViewer messageViewer, TD.SandDock.DocumentContainer documentContainer, Images images) { _qSetExplorer = qSetExplorer; _qSetMonitor = qSetMonitor; _propertyGrid = propertyGrid; _messageViewer = messageViewer; _documentContainer = documentContainer; _images = images; _messageBrowserCollection = new MessageBrowserCollection(); _webServiceClientControlCollection = new WebServiceClientControlCollection(); }