private System.Drawing.Design.ToolboxItem pointer; // a "null" tool
		public ToolboxUIManagerVS(Toolbox toolbox)
		{
			m_toolbox = toolbox;
			pointer = new System.Drawing.Design.ToolboxItem();
			pointer.DisplayName = "<Pointer>";
			pointer.Bitmap = new System.Drawing.Bitmap(16, 16);
		}
示例#2
0
        public void PopulateUI(Toolbox toolbox)
		{
            Toolbox = toolbox;
            Toolbox.Tabs = new Collection<ToolboxTab>();
            foreach (string key in tabDictionary.Keys)
                Toolbox.Tabs.Add(tabDictionary[key]);
            CreateControls();
		}
		/*private Type[] windowsFormsToolTypes = new Type[] {
			typeof(System.Windows.Forms.PropertyGrid), typeof(System.Windows.Forms.Label), typeof(System.Windows.Forms.LinkLabel), typeof(System.Windows.Forms.Button), typeof(System.Windows.Forms.TextBox), typeof(System.Windows.Forms.CheckBox), typeof(System.Windows.Forms.RadioButton), typeof(System.Windows.Forms.GroupBox), typeof(System.Windows.Forms.PictureBox), typeof(System.Windows.Forms.Panel), typeof(System.Windows.Forms.DataGrid), typeof(System.Windows.Forms.ListBox), typeof(System.Windows.Forms.CheckedListBox), typeof(System.Windows.Forms.ComboBox), typeof(System.Windows.Forms.ListView), typeof(System.Windows.Forms.TreeView), typeof(System.Windows.Forms.TabControl), typeof(System.Windows.Forms.DateTimePicker), typeof(System.Windows.Forms.MonthCalendar), typeof(System.Windows.Forms.HScrollBar), typeof(System.Windows.Forms.VScrollBar), typeof(System.Windows.Forms.Timer), typeof(System.Windows.Forms.Splitter), typeof(System.Windows.Forms.DomainUpDown), typeof(System.Windows.Forms.NumericUpDown), typeof(System.Windows.Forms.TrackBar), typeof(System.Windows.Forms.ProgressBar), typeof(System.Windows.Forms.RichTextBox), typeof(System.Windows.Forms.ImageList), typeof(System.Windows.Forms.HelpProvider), typeof(System.Windows.Forms.ToolTip), typeof(System.Windows.Forms.ToolBar), typeof(System.Windows.Forms.StatusBar), typeof(System.Windows.Forms.UserControl), typeof(System.Windows.Forms.NotifyIcon), typeof(System.Windows.Forms.OpenFileDialog), typeof(System.Windows.Forms.SaveFileDialog), typeof(System.Windows.Forms.FontDialog), typeof(System.Windows.Forms.ColorDialog), typeof(System.Windows.Forms.PrintDialog), typeof(System.Windows.Forms.PrintPreviewDialog), typeof(System.Windows.Forms.PrintPreviewControl), typeof(System.Windows.Forms.ErrorProvider), typeof(System.Drawing.Printing.PrintDocument), typeof(System.Windows.Forms.PageSetupDialog)
		};
		private Type[] componentsToolTypes = new Type[] {
			typeof(System.IO.FileSystemWatcher), typeof(System.Diagnostics.Process), typeof(System.Timers.Timer)
		};
		private Type[] dataToolTypes = new Type[] {
			typeof(System.Data.OleDb.OleDbCommandBuilder), typeof(System.Data.OleDb.OleDbConnection), typeof(System.Data.SqlClient.SqlCommandBuilder), typeof(System.Data.SqlClient.SqlConnection),
		};
		private Type[] userControlsToolTypes = new Type[] {
			typeof(System.Windows.Forms.UserControl)
		};*/

		public ToolboxXmlManager(Toolbox toolbox)
		{
			m_toolbox = toolbox;
		}