Exemple #1
0
 /// <summary>
 /// Raises the QSetActivated event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 private void OnQSetActivatedEvent(QSetActivatedEventArgs e)
 {
     try
     {
         if (_qSetActivated != null)
         {
             _qSetActivated(this, e);
         }
     }
     catch {}
 }
        //TODO restore close handle
        /*
		/// <summary>
		/// Handles event fired when a document is closed.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void DocumentContainer_DocumentClosing(object sender, TD.SandDock.DocumentClosingEventArgs e)
		{
			if (e.DockControl.Controls.Count > 0)
			{
				MessageBrowser messageBrowser = e.DockControl.Controls[0] as MessageBrowser;
				if (messageBrowser != null)
					base.PrimaryControls.MessageBrowserCollection.Remove(messageBrowser.QSetQueueItem.ID.ToString());
				else
				{
					WebServiceClientControl webServiceClientControl = e.DockControl.Controls[0] as WebServiceClientControl;
					if (webServiceClientControl != null)
						base.PrimaryControls.WebServiceClientControlCollection.Remove(webServiceClientControl.QSetItem.ID.ToString());	
				}
			}

			base.TaskManager.MenuStateManger.SetQueueMenuState();
		}
         * */


		/// <summary>
		/// Raised when a Q Set is activated in the Q Set Explorer.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void QSetExplorer_QSetActivated(object sender, QSetActivatedEventArgs e)
		{						
			e.Item.ItemRenamed += new ItemRenamedEvent(QSet_ItemRenamed);
			e.Item.ItemDirtied += new ItemDirtiedEvent(QSet_ItemDirtied);

			base.TaskManager.SetTitleBarText();
			base.TaskManager.MenuStateManger.SetQSetMenuState();
			base.PrimaryControls.QSetMonitor.QSet = (QSetModel)e.Item;			
		}
Exemple #3
0
		/// <summary>
		/// Raises the QSetActivated event.
		/// </summary>
		/// <param name="e">Event arguments.</param>
		private void OnQSetActivatedEvent(QSetActivatedEventArgs e)
		{
			try
			{
				if (_qSetActivated != null)
					_qSetActivated(this, e);
			}
			catch {}
		}