Exemplo n.º 1
0
		public Workspace ()
		{
			_documents = new List<Document>();
			_activeDocument = null;
			_references = new References ();
			_serviceContainer = new ServiceContainer ();
		}
Exemplo n.º 2
0
		public ReferencesDialog (References references)
		{
			if (references == null)
				throw new ArgumentNullException ("references");
			_references = references;

			InitializeComponent ();
			PopulateReferencesList ();
		}
Exemplo n.º 3
0
 public Workspace()
 {
     _documents = new Dictionary<object, Document>();
     _activeDocument = null;
     _references = new References ();
     _serviceContainer = new ServiceContainer ();
 }
Exemplo n.º 4
0
 private void LoadDefaultReferences(References references)
 {
     references.AddReference (Assembly.Load ("System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
     references.AddReference (Assembly.Load ("System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"));
     references.AddReference (Assembly.Load ("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
 }
Exemplo n.º 5
0
 public void Dispose()
 {
     _activeDocument = null;
     _documents = null;
     _references.Dispose ();
     _references = null;
     _serviceContainer.Dispose ();
     _serviceContainer = null;
 }
		public TypeResolutionService (References references)
		{
			if (references == null)
				throw new ArgumentNullException ("references");
			_references = references;
		}
Exemplo n.º 7
0
		// Currently populates with all MWF Controls that have a public ctor with no params
		//
		private void PopulateToolbox (Toolbox toolbox, References references)
		{
			foreach (ToolboxItem item in _workspace.GetToolboxItems ())
				toolbox.AddToolboxItem (item);
		}
Exemplo n.º 8
0
 private void LoadDefaultReferences(References references)
 {
     references.AddReference(Assembly.Load("System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
     references.AddReference(Assembly.Load("System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"));
     references.AddReference(Assembly.Load("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
 }