Example #1
0
        /// <summary>
        /// Initializes a new instance of the XmlConfigurationView class
        /// </summary>
        public XmlConfigurationView()
        {
            this.InitializeComponent();

            _selectedConfigurations = new XmlConfigurationCollection();

            // property grid
            _propertyGrid.HelpVisible    = true;
            _propertyGrid.ToolbarVisible = true;

            // splitter
            _splitter.MouseEnter += new EventHandler(OnMouseEnterSplitter);
            _splitter.MouseLeave += new EventHandler(OnMouseLeaveSplitter);

            // treeview
            _treeView.AfterSelect += new TreeViewEventHandler(OnAfterNodeSelected);
            _treeView.ImageList    = _imageList;

            _placeElementsIntoEditMode = true;

            _contextMenu.Popup += new EventHandler(OnGridContextMenuPoppedUp);
        }
		public XmlConfigurationManagerEventArgs(params XmlConfiguration[] configurations) : base()
		{
			_configurations = new XmlConfigurationCollection(configurations);
		}
 public XmlConfigurationManagerEventArgs(params XmlConfiguration[] configurations) : base()
 {
     _configurations = new XmlConfigurationCollection(configurations);
 }
		/// <summary>
		/// Initializes a new instance of the XmlConfigurationView class
		/// </summary>
		public XmlConfigurationView()
		{
			this.InitializeComponent();

			_selectedConfigurations = new XmlConfigurationCollection();

			// property grid
			_propertyGrid.HelpVisible = true;
			_propertyGrid.ToolbarVisible = true;
			
			// splitter
			_splitter.MouseEnter += new EventHandler(OnMouseEnterSplitter);
			_splitter.MouseLeave += new EventHandler(OnMouseLeaveSplitter);

			// treeview
			_treeView.AfterSelect += new TreeViewEventHandler(OnAfterNodeSelected);
			_treeView.ImageList = _imageList;

			_placeElementsIntoEditMode = true;

			_contextMenu.Popup += new EventHandler(OnGridContextMenuPoppedUp);
		}