示例#1
0
 private static void  FillListContent(IResourceList typesList, JetListView _list)
 {
     foreach (IResource typeRes in typesList)
     {
         _list.Nodes.Add(typeRes);
     }
 }
示例#2
0
 public virtual void Dispose()
 {
     if (!_disposed)
     {
         _disposed = true;
         _listView = null;
     }
 }
示例#3
0
        public ExpandedPropManager(JetListView listView, int propId)
        {
            _jetListView = listView;
            _propId      = propId;

            _jetListView.NodeCollection.NodeAdded         += new JetListViewNodeEventHandler(HandleNodeAdded);
            _jetListView.NodeCollection.NodeExpandChanged += new JetListViewNodeEventHandler(HandleNodeExpandChanged);
        }
示例#4
0
 /// <summary>
 /// Creates a node displaying the children of the specified resource.
 /// </summary>
 /// <param name="owner">The data provider to which the node belongs.</param>
 /// <param name="listView">The list view displaying the nodes.</param>
 /// <param name="parentResource">The node whose children are displayed.</param>
 /// <param name="parentProp">The ID of the link property between the node and its children,
 /// or 0 if a custom list of children is used.</param>
 /// <param name="childResources">The list of child resources.</param>
 public ResourceTreeDataNode(ResourceTreeDataProvider owner, JetListView listView,
                             IResource parentResource, int parentProp, IResourceList childResources)
 {
     _listView       = listView;
     _owner          = owner;
     _parentResource = parentResource;
     _parentProp     = parentProp;
     _childResources = childResources;
 }
示例#5
0
        public void FillResources(ResourceListView2 listView)
        {
            _listView = listView.JetListView;
            _listView.ChildrenRequested += new RequestChildrenEventHandler(HandleChildrenRequested);

            // Set the proper root
            listView.RootResource = _rootResource;

            ExpandResource(_listView.Root, _rootResource);
        }
示例#6
0
        private void ShowThreadedEmails(IResourceList resourceList)
        {
            _dataProvider = new ConversationDataProvider(resourceList, _threadingHandler);
            _dataProvider.SetInitialSort(new SortSettings(_propDate, true));

            _listView   = _resourceListView.JetListView;
            _dateColumn = new ResourceListView2Column(new int[] { _propDate });
            _listView.Columns.Add(_dateColumn);

            _resourceListView.DataProvider = _dataProvider;
        }
示例#7
0
        private static bool AllItemsChecked(CheckBoxColumn col)
        {
            JetListView listView = col.OwnerControl;

            for (int i = 0; i < listView.Nodes.Count; i++)
            {
                if (col.GetItemCheckState(listView.Nodes [i].Data) == CheckBoxState.Unchecked)
                {
                    return(false);
                }
            }
            return(true);
        }
示例#8
0
        public void FillResources(ResourceListView2 listView)
        {
            #region Preconditions
            if (_listView != null)
            {
                throw new InvalidOperationException("Attempt to attach a ResourceListDataProvider which is already attached");
            }
            #endregion Preconditions

            _listView = listView.JetListView;
            for (int i = 0; i < _store.Count; i++)
            {
                _listView.Nodes.Add(_store[i]);
            }
        }
示例#9
0
 public virtual void Dispose()
 {
     if (!_disposed)
     {
         _disposed = true;
         if (_listView != null)
         {
             _listView.ColumnClick -= HandleColumnClick;
             lock ( _resourceList )
             {
                 _resourceList.ResourceAdded    -= HandleResourceAdded;
                 _resourceList.ResourceChanged  -= HandleResourceChanged;
                 _resourceList.ResourceDeleting -= HandleResourceDeleting;
                 _resourceList = null;
                 _listView     = null;
             }
         }
     }
 }
示例#10
0
        private static void SetupListView(JetListView listView, ItemTextCallback callback, ref CheckBoxColumn chkCol)
        {
            listView.ControlPainter = new GdiControlPainter();
            listView.NodeCollection.SetItemComparer(null, new TypeByNameComparer());

            chkCol = new CheckBoxColumn();
            chkCol.HandleAllClicks = true;
            listView.Columns.Add(chkCol);

            ResourceIconColumn iconColumn = new ResourceIconColumn();

            iconColumn.Width = 20;
            listView.Columns.Add(iconColumn);

            JetListViewColumn column = new JetListViewColumn();

            column.SizeToContent    = true;
            column.ItemTextCallback = callback;
            listView.Columns.Add(column);
        }
示例#11
0
文件: DeletersPane.cs 项目: mo5h/omeo
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._deletersListView = new JetListView();
     this.SuspendLayout();
     //
     // _deletersListView
     //
     this._deletersListView.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._deletersListView.Location = new System.Drawing.Point(0, 0);
     this._deletersListView.Name     = "_deletersListView";
     this._deletersListView.Size     = new System.Drawing.Size(184, 156);
     this._deletersListView.TabIndex = 0;
     //
     // DeletersPane
     //
     this.Controls.Add(this._deletersListView);
     this.Name = "DeletersPane";
     this.Size = new System.Drawing.Size(184, 156);
     this.ResumeLayout(false);
 }
示例#12
0
        public void FillResources(ResourceListView2 listView)
        {
            if (_listView != null)
            {
                throw new InvalidOperationException("Attempt to attach a ResourceListDataProvider which is already attached");
            }
            _listView = listView.JetListView;
            ApplySortSettings(listView.JetListView, _curSortSettings);

            lock ( _resourceList )
            {
                AddResourceNodes();
                _nodesAdded = true;

                _resourceList.ResourceAdded    += HandleResourceAdded;
                _resourceList.ResourceChanged  += HandleResourceChanged;
                _resourceList.ResourceDeleting += HandleResourceDeleting;
            }

            _listView.ColumnClick += HandleColumnClick;
        }
示例#13
0
        public void BeginEdit(JetListView jetListView, JetListViewColumn col, JetListViewNode node)
        {
            _host       = jetListView;
            _editColumn = col;
            _editNode   = node;

            if (!jetListView.Controls.Contains(_inPlaceEditBox))
            {
                jetListView.Controls.Add(_inPlaceEditBox);
            }

            Rectangle rc = jetListView.GetItemBounds(node, col);

            if (col.SizeToContent)
            {
                rc.Width = jetListView.InternalClientRect().Width - rc.Left;
            }
            JetItemEditEventArgs args = new JetItemEditEventArgs(col.GetItemText(node.Data, rc.Width),
                                                                 node.Data, col);

            OnBeforeItemEdit(args);
            if (args.CancelEdit)
            {
                return;
            }

            jetListView.ScrollInView(node);
            jetListView.SetEditedNode(node);

            _inPlaceEditRect       = new Rectangle(rc.Left - 2, rc.Top - 1, rc.Width + 4, rc.Height + 2);
            _inPlaceEditBox.Bounds = _inPlaceEditRect;
            _inPlaceEditBox.Text   = args.Text;
            _startEditText         = args.Text;
            AutosizeInPlaceEdit();
            _inPlaceEditBox.Visible = true;
            _inPlaceEditBox.Focus();
        }
示例#14
0
        public void ApplySortSettings(JetListView listView, SortSettings sortSettings)
        {
            if (sortSettings != null)
            {
                _curSortSettings = sortSettings;
                bool foundComparerColumn = false;
                foreach (JetListViewColumn col in listView.Columns)
                {
                    ResourcePropsColumn propsCol = col as ResourcePropsColumn;
                    if (propsCol != null && propsCol.PropIdsEqual(sortSettings.SortProps))
                    {
                        _lastComparer           = CreateColumnComparer(propsCol, sortSettings);
                        propsCol.SortIcon       = sortSettings.SortAscending ? SortIcon.Ascending : SortIcon.Descending;
                        _lastSortColumn         = propsCol;
                        _listView.GroupProvider = _lastSortColumn.GroupProvider;
                        foundComparerColumn     = true;
                    }
                    else
                    {
                        col.SortIcon = SortIcon.None;
                    }
                }
                if (!foundComparerColumn)
                {
                    _lastComparer = new ResourceComparer(_resourceList, _curSortSettings, true);
                }

                if (_lastComparer != null)
                {
                    _listView.NodeCollection.SetItemComparer(null, _lastComparer);
                    if (_nodesAdded)
                    {
                        _listView.NodeCollection.Sort();
                    }
                }
            }
        }
示例#15
0
        [SetUp] public void SetUp()
        {
            _core = new TestCore();
            _core.SetDisplayColumnManager(new DisplayColumnManager());

            _core.ResourceStore.PropTypes.Register("IsUnread", PropDataType.Bool);
            _core.ResourceStore.PropTypes.Register("Date", PropDataType.Date);
            _core.ResourceStore.PropTypes.Register("Subject", PropDataType.String);
            _core.ResourceStore.PropTypes.Register("Annotation", PropDataType.String);
            _propReply = _core.ResourceStore.PropTypes.Register("Reply", PropDataType.Link, PropTypeFlags.DirectedLink);

            _core.ResourceStore.ResourceTypes.Register("Email", "Subject");

            _theEmail = _core.ResourceStore.NewResource("Email");

            _resourceBrowser = new ResourceBrowser();
            _jetListView     = _resourceBrowser.ListView.JetListView;
            _header          = _jetListView.Header;

            _cdIcon       = new ColumnDescriptor("Type", 20, ColumnDescriptorFlags.FixedSize);
            _cdName       = new ColumnDescriptor("DisplayName", 100);
            _cdDate       = new ColumnDescriptor("Date", 50);
            _cdAnnotation = new ColumnDescriptor("Annotation", 20, ColumnDescriptorFlags.FixedSize);
        }
示例#16
0
        [Test] public void SortChildren()
        {
            DateTime  now    = DateTime.Now;
            IResource email0 = CreateEmail("Email0", now.AddSeconds(-10), null, true);
            IResource email1 = CreateEmail("Email1", now.AddSeconds(-7), email0, true);
            IResource email2 = CreateEmail("Email2", now.AddSeconds(-5), email0, true);
            IResource email3 = CreateEmail("Email3", now.AddSeconds(-6), email0, true);

            IResourceList resourceList = Core.ResourceStore.GetAllResourcesLive("Email");

            resourceList.Sort(new int[] { _propDate }, false);
            _dataProvider = new ConversationDataProvider(resourceList, _threadingHandler);

            _listView   = _resourceListView.JetListView;
            _dateColumn = new ResourceListView2Column(new int[] { _propDate });
            _listView.Columns.Add(_dateColumn);

            _resourceListView.DataProvider = _dataProvider;

            _listView.Nodes [0].Expanded = true;
            Assert.AreEqual(email1, _listView.Nodes [0].Nodes [0].Data);
            Assert.AreEqual(email3, _listView.Nodes [0].Nodes [1].Data);
            Assert.AreEqual(email2, _listView.Nodes [0].Nodes [2].Data);
        }
示例#17
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1      = new System.Windows.Forms.Label();
     this._resultList = new JetListView();
     this.btnSelAll   = new System.Windows.Forms.Button();
     this.btnUnselAll = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Location  = new System.Drawing.Point(8, 28);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(328, 32);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "OmniaMea has found multiple feeds for the site. Please select the feed to which " +
                             "you want to subscribe:";
     this.label1.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
     //
     // _resultPanel
     //
     this._resultList.Location = new System.Drawing.Point(8, 64);
     this._resultList.KeyDown += new KeyEventHandler(OnResultKeyDown);
     this._resultList.Name     = "_resultList";
     this._resultList.Size     = new System.Drawing.Size(280, 324);
     this._resultList.TabIndex = 1;
     this._resultList.Anchor   = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top;
     //
     // btnSelAll
     //
     this.btnSelAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSelAll.Location  = new System.Drawing.Point(295, 64);
     this.btnSelAll.Text      = "Select All";
     this.btnSelAll.Name      = "btnSelAll";
     this.btnSelAll.Size      = new System.Drawing.Size(75, 24);
     this.btnSelAll.Click    += new EventHandler(btnSelAll_Click);
     this.btnSelAll.TabIndex  = 2;
     this.btnSelAll.Anchor    = AnchorStyles.Right | AnchorStyles.Top;
     //
     // btnUnselAll
     //
     this.btnUnselAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnUnselAll.Location  = new System.Drawing.Point(295, 94);
     this.btnUnselAll.Text      = "Unselect All";
     this.btnUnselAll.Name      = "btnUnselAll";
     this.btnUnselAll.Size      = new System.Drawing.Size(75, 24);
     this.btnUnselAll.Click    += new EventHandler(btnUnselAll_Click);
     this.btnUnselAll.TabIndex  = 3;
     this.btnUnselAll.Anchor    = AnchorStyles.Right | AnchorStyles.Top;
     //
     // MultipleResultsPane
     //
     this.Controls.Add(this._resultList);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.btnSelAll);
     this.Controls.Add(this.btnUnselAll);
     this.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top;
     this.Name   = "MultipleResultsPane";
     this.Size   = new System.Drawing.Size(370, 396);
     this.ResumeLayout(false);
 }
示例#18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._edtSearchQuery          = new JetTextBox();
     this.label1                   = new System.Windows.Forms.Label();
     this._lblError                = new System.Windows.Forms.Label();
     this._lblProgress             = new System.Windows.Forms.Label();
     this._lblEngineNameInProgress = new Label();
     this._lblTitle                = new System.Windows.Forms.Label();
     this.btnSelAll                = new System.Windows.Forms.Button();
     this.btnUnselAll              = new System.Windows.Forms.Button();
     this._searchEngines           = new JetListView();
     _chkSaveSelection             = new CheckBox();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Location  = new System.Drawing.Point(12, 24);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(372, 17);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "Enter search keywords:";
     //
     // _edtSearchQuery
     //
     this._edtSearchQuery.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this._edtSearchQuery.Location     = new System.Drawing.Point(12, 44);
     this._edtSearchQuery.Name         = "_edtSearchQuery";
     this._edtSearchQuery.Size         = new System.Drawing.Size(355, 20);
     this._edtSearchQuery.TabIndex     = 2;
     this._edtSearchQuery.Text         = "";
     this._edtSearchQuery.KeyDown     += new System.Windows.Forms.KeyEventHandler(this._edtURL_KeyDown);
     this._edtSearchQuery.KeyPress    += new System.Windows.Forms.KeyPressEventHandler(this._edtURL_KeyPress);
     this._edtSearchQuery.TextChanged += new EventHandler(StateChanged);
     this._edtSearchQuery.Anchor       = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
     //
     // _lblError
     //
     this._lblError.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._lblError.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this._lblError.Location  = new System.Drawing.Point(12, 252);
     this._lblError.Name      = "_lblError";
     this._lblError.Size      = new System.Drawing.Size(344, 72);
     this._lblError.TabIndex  = 5;
     this._lblError.Text      = "label3";
     this._lblError.Visible   = false;
     //
     // labelTitle
     //
     this._lblTitle.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._lblTitle.Location  = new System.Drawing.Point(12, 76);
     this._lblTitle.Name      = "_lblTitle";
     this._lblTitle.Size      = new System.Drawing.Size(372, 17);
     this._lblTitle.TabIndex  = 3;
     this._lblTitle.Text      = "Choose Search Engine:";
     //
     // _searchEngines
     //
     this._searchEngines.Location = new System.Drawing.Point(12, 96);
     this._searchEngines.Name     = "_searchEngines";
     this._searchEngines.Size     = new System.Drawing.Size(260, 205);
     this._searchEngines.TabIndex = 4;
     this._searchEngines.TabStop  = false;
     this._searchEngines.Text     = "Choose Search Engine";
     this._searchEngines.Anchor   = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top;
     //
     // btnSelAll
     //
     this.btnSelAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSelAll.Location  = new System.Drawing.Point(295, 96);
     this.btnSelAll.Text      = "&Select All";
     this.btnSelAll.Name      = "btnSelAll";
     this.btnSelAll.Size      = new System.Drawing.Size(75, 24);
     this.btnSelAll.Click    += new EventHandler(btnSelAll_Click);
     this.btnSelAll.TabIndex  = 5;
     this.btnSelAll.Anchor    = AnchorStyles.Right | AnchorStyles.Top;
     //
     // btnUnselAll
     //
     this.btnUnselAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnUnselAll.Location  = new System.Drawing.Point(295, 126);
     this.btnUnselAll.Text      = "&Unselect All";
     this.btnUnselAll.Name      = "btnUnselAll";
     this.btnUnselAll.Size      = new System.Drawing.Size(75, 24);
     this.btnUnselAll.Click    += new EventHandler(btnUnselAll_Click);
     this.btnUnselAll.TabIndex  = 6;
     this.btnUnselAll.Anchor    = AnchorStyles.Right | AnchorStyles.Top;
     //
     // _chkSaveSelection
     //
     _chkSaveSelection.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     _chkSaveSelection.Location        = new System.Drawing.Point(12, _searchEngines.Bottom + 6);
     _chkSaveSelection.Text            = "&Remember selection";
     _chkSaveSelection.Name            = "_chkSaveSelection";
     _chkSaveSelection.Size            = new System.Drawing.Size(300, 20);
     _chkSaveSelection.TabIndex        = 7;
     _chkSaveSelection.Anchor          = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
     _chkSaveSelection.CheckedChanged += new EventHandler(_chkSaveSelection_CheckedChanged);
     //
     // _lblEngineNameInProgress
     //
     this._lblEngineNameInProgress.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._lblEngineNameInProgress.Location  = new System.Drawing.Point(16, _searchEngines.Bottom + 32);
     this._lblEngineNameInProgress.Name      = "_lblProgress";
     this._lblEngineNameInProgress.Size      = new System.Drawing.Size(344, 48);
     this._lblEngineNameInProgress.TabIndex  = 8;
     this._lblEngineNameInProgress.Font      = new Font("Tahoma", 10.0f, FontStyle.Bold);
     this._lblEngineNameInProgress.Anchor    = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
     //
     // _lblProgress
     //
     this._lblProgress.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._lblProgress.Location  = new System.Drawing.Point(16, _searchEngines.Bottom + 52);
     this._lblProgress.Name      = "_lblProgress";
     this._lblProgress.Size      = new System.Drawing.Size(344, 48);
     this._lblProgress.TabIndex  = 9;
     this._lblProgress.Anchor    = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
     //
     // SearchEnginesPane
     //
     this.Controls.Add(this._searchEngines);
     this.Controls.Add(this._lblProgress);
     this.Controls.Add(this._lblEngineNameInProgress);
     this.Controls.Add(this._lblError);
     this.Controls.Add(this._edtSearchQuery);
     this.Controls.Add(this.btnSelAll);
     this.Controls.Add(this.btnUnselAll);
     this.Controls.Add(_chkSaveSelection);
     this.Controls.Add(this._lblTitle);
     this.Controls.Add(this.label1);
     this.Name            = "SearchEnginesPane";
     this.Size            = new System.Drawing.Size(384, 396);
     this.Anchor          = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top;
     this.VisibleChanged += new EventHandler(SearchEnginesPane_VisibleChanged);
     this.ResumeLayout(false);
 }
示例#19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._listResourceTypes    = new JetBrains.JetListViewLibrary.JetListView();
     this.okButton              = new System.Windows.Forms.Button();
     this.cancelButton          = new System.Windows.Forms.Button();
     this.label1                = new System.Windows.Forms.Label();
     this._listFileTypes        = new JetBrains.JetListViewLibrary.JetListView();
     this.checkAllResourceTypes = new System.Windows.Forms.CheckBox();
     this._listLinkTypes        = new JetBrains.JetListViewLibrary.JetListView();
     this.label2                = new System.Windows.Forms.Label();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.buttonHelp            = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // _listResourceTypes
     //
     this._listResourceTypes.AllowColumnReorder = false;
     this._listResourceTypes.Anchor             = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                        | System.Windows.Forms.AnchorStyles.Left)));
     this._listResourceTypes.BackColor            = System.Drawing.SystemColors.Window;
     this._listResourceTypes.BorderStyle          = System.Windows.Forms.BorderStyle.Fixed3D;
     this._listResourceTypes.ColumnScheme         = null;
     this._listResourceTypes.ColumnSchemeProvider = null;
     this._listResourceTypes.GroupProvider        = null;
     this._listResourceTypes.HeaderStyle          = System.Windows.Forms.ColumnHeaderStyle.None;
     this._listResourceTypes.InPlaceEditor        = null;
     this._listResourceTypes.Location             = new System.Drawing.Point(2, 36);
     this._listResourceTypes.MultiLineView        = false;
     this._listResourceTypes.Name          = "_listResourceTypes";
     this._listResourceTypes.RowDelimiters = false;
     this._listResourceTypes.Size          = new System.Drawing.Size(188, 276);
     this._listResourceTypes.TabIndex      = 2;
     //
     // okButton
     //
     this.okButton.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.okButton.Location  = new System.Drawing.Point(160, 320);
     this.okButton.Name      = "okButton";
     this.okButton.Size      = new System.Drawing.Size(72, 24);
     this.okButton.TabIndex  = 7;
     this.okButton.Text      = "OK";
     this.okButton.Click    += new System.EventHandler(this.okButton_Click);
     //
     // cancelButton
     //
     this.cancelButton.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.cancelButton.Location     = new System.Drawing.Point(240, 320);
     this.cancelButton.Name         = "cancelButton";
     this.cancelButton.Size         = new System.Drawing.Size(72, 24);
     this.cancelButton.TabIndex     = 8;
     this.cancelButton.Text         = "Cancel";
     //
     // label1
     //
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Location  = new System.Drawing.Point(196, 168);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(100, 16);
     this.label1.TabIndex  = 5;
     this.label1.Text      = "Matching File Types:";
     //
     // _listFileTypes
     //
     this._listFileTypes.AllowColumnReorder   = false;
     this._listFileTypes.Anchor               = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
     this._listFileTypes.BackColor            = System.Drawing.SystemColors.Window;
     this._listFileTypes.BorderStyle          = System.Windows.Forms.BorderStyle.Fixed3D;
     this._listFileTypes.ColumnScheme         = null;
     this._listFileTypes.ColumnSchemeProvider = null;
     this._listFileTypes.GroupProvider        = null;
     this._listFileTypes.HeaderStyle          = System.Windows.Forms.ColumnHeaderStyle.None;
     this._listFileTypes.InPlaceEditor        = null;
     this._listFileTypes.Location             = new System.Drawing.Point(192, 188);
     this._listFileTypes.MultiLineView        = false;
     this._listFileTypes.Name          = "_listFileTypes";
     this._listFileTypes.RowDelimiters = false;
     this._listFileTypes.Size          = new System.Drawing.Size(208, 124);
     this._listFileTypes.TabIndex      = 6;
     //
     // checkAllResourceTypes
     //
     this.checkAllResourceTypes.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.checkAllResourceTypes.Location        = new System.Drawing.Point(4, 8);
     this.checkAllResourceTypes.Name            = "checkAllResourceTypes";
     this.checkAllResourceTypes.Size            = new System.Drawing.Size(120, 20);
     this.checkAllResourceTypes.TabIndex        = 1;
     this.checkAllResourceTypes.Text            = "All Resource Types";
     this.checkAllResourceTypes.CheckedChanged += new System.EventHandler(this.checkAllResourceTypes_CheckedChanged);
     //
     // _listLinkTypes
     //
     this._listLinkTypes.AllowColumnReorder   = false;
     this._listLinkTypes.Anchor               = System.Windows.Forms.AnchorStyles.Top;
     this._listLinkTypes.BackColor            = System.Drawing.SystemColors.Window;
     this._listLinkTypes.BorderStyle          = System.Windows.Forms.BorderStyle.Fixed3D;
     this._listLinkTypes.ColumnScheme         = null;
     this._listLinkTypes.ColumnSchemeProvider = null;
     this._listLinkTypes.GroupProvider        = null;
     this._listLinkTypes.HeaderStyle          = System.Windows.Forms.ColumnHeaderStyle.None;
     this._listLinkTypes.InPlaceEditor        = null;
     this._listLinkTypes.Location             = new System.Drawing.Point(192, 60);
     this._listLinkTypes.MultiLineView        = false;
     this._listLinkTypes.Name          = "_listLinkTypes";
     this._listLinkTypes.RowDelimiters = false;
     this._listLinkTypes.Size          = new System.Drawing.Size(208, 100);
     this._listLinkTypes.TabIndex      = 4;
     //
     // label2
     //
     this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label2.Location  = new System.Drawing.Point(196, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(136, 16);
     this.label2.TabIndex  = 3;
     this.label2.Text      = "Resources Containing Files:";
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Location = new System.Drawing.Point(4, 28);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(400, 4);
     this.groupBox1.TabIndex = 9;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "groupBox1";
     //
     // buttonHelp
     //
     this.buttonHelp.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonHelp.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonHelp.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.buttonHelp.Location     = new System.Drawing.Point(320, 320);
     this.buttonHelp.Name         = "buttonHelp";
     this.buttonHelp.Size         = new System.Drawing.Size(72, 24);
     this.buttonHelp.TabIndex     = 8;
     this.buttonHelp.Text         = "Help";
     this.buttonHelp.Click       += new System.EventHandler(this.buttonHelp_Click);
     //
     // ChooseResTypeDialog
     //
     this.AcceptButton      = this.okButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.CancelButton      = this.cancelButton;
     this.ClientSize        = new System.Drawing.Size(400, 349);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this._listLinkTypes);
     this.Controls.Add(this.checkAllResourceTypes);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.okButton);
     this.Controls.Add(this._listResourceTypes);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this._listFileTypes);
     this.Controls.Add(this.buttonHelp);
     this.MinimumSize  = new System.Drawing.Size(300, 350);
     this.Name         = "ChooseResTypeDialog";
     this.Text         = "Choose Resource Types";
     this.SizeChanged += new System.EventHandler(this.ChooseResTypeDialog_SizeChanged);
     this.ResumeLayout(false);
 }
示例#20
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._propListView       = new JetBrains.JetListViewLibrary.JetListView();
     this._btnOK              = new System.Windows.Forms.Button();
     this._btnCancel          = new System.Windows.Forms.Button();
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.radThisView         = new System.Windows.Forms.RadioButton();
     this.radAllViews         = new System.Windows.Forms.RadioButton();
     this._btnRestoreDefaults = new System.Windows.Forms.Button();
     this._btnHelp            = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // _propListView
     //
     this._propListView.AllowColumnReorder = false;
     this._propListView.AllowDrop          = true;
     this._propListView.Anchor             = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this._propListView.BackColor     = System.Drawing.SystemColors.Window;
     this._propListView.BorderStyle   = System.Windows.Forms.BorderStyle.Fixed3D;
     this._propListView.DragOver     += new JetListViewDragEventHandler(HandleDragOver);
     this._propListView.DragDrop     += new JetListViewDragEventHandler(HandleDragDrop);
     this._propListView.EmptyText     = "There are no items in this view.";
     this._propListView.FullRowSelect = false;
     this._propListView.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.None;
     this._propListView.InPlaceEditor = null;
     this._propListView.ItemDrag     += new ItemDragEventHandler(HandleItemDrag);
     this._propListView.Location      = new System.Drawing.Point(4, 4);
     this._propListView.Name          = "_propListView";
     this._propListView.Size          = new System.Drawing.Size(380, 188);
     this._propListView.TabIndex      = 0;
     //
     // _btnOK
     //
     this._btnOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this._btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this._btnOK.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this._btnOK.Location     = new System.Drawing.Point(140, 276);
     this._btnOK.Name         = "_btnOK";
     this._btnOK.TabIndex     = 1;
     this._btnOK.Text         = "OK";
     //
     // _btnCancel
     //
     this._btnCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this._btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this._btnCancel.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this._btnCancel.Location     = new System.Drawing.Point(224, 276);
     this._btnCancel.Name         = "_btnCancel";
     this._btnCancel.TabIndex     = 2;
     this._btnCancel.Text         = "Cancel";
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.radThisView);
     this.groupBox1.Controls.Add(this.radAllViews);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location  = new System.Drawing.Point(4, 196);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(380, 72);
     this.groupBox1.TabIndex  = 3;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Apply settings to";
     //
     // radThisView
     //
     this.radThisView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.radThisView.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.radThisView.Location  = new System.Drawing.Point(8, 44);
     this.radThisView.Name      = "radThisView";
     this.radThisView.Size      = new System.Drawing.Size(364, 20);
     this.radThisView.TabIndex  = 1;
     this.radThisView.Text      = "This view only";
     //
     // radAllViews
     //
     this.radAllViews.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.radAllViews.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.radAllViews.Location  = new System.Drawing.Point(8, 20);
     this.radAllViews.Name      = "radAllViews";
     this.radAllViews.Size      = new System.Drawing.Size(364, 24);
     this.radAllViews.TabIndex  = 0;
     this.radAllViews.Text      = "All views with resources of types";
     //
     // _btnRestoreDefaults
     //
     this._btnRestoreDefaults.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this._btnRestoreDefaults.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._btnRestoreDefaults.Location  = new System.Drawing.Point(4, 276);
     this._btnRestoreDefaults.Name      = "_btnRestoreDefaults";
     this._btnRestoreDefaults.Size      = new System.Drawing.Size(116, 23);
     this._btnRestoreDefaults.TabIndex  = 4;
     this._btnRestoreDefaults.Text      = "Restore Defaults";
     this._btnRestoreDefaults.Click    += new System.EventHandler(this._btnRestoreDefaults_Click);
     //
     // _btnHelp
     //
     this._btnHelp.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this._btnHelp.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._btnHelp.Location  = new System.Drawing.Point(308, 276);
     this._btnHelp.Name      = "_btnHelp";
     this._btnHelp.TabIndex  = 5;
     this._btnHelp.Text      = "Help";
     this._btnHelp.Click    += new System.EventHandler(this._btnHelp_Click);
     //
     // ConfigureColumnsDialog
     //
     this.AcceptButton      = this._btnOK;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.CancelButton      = this._btnCancel;
     this.ClientSize        = new System.Drawing.Size(392, 306);
     this.Controls.Add(this._btnHelp);
     this.Controls.Add(this._btnRestoreDefaults);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this._btnCancel);
     this.Controls.Add(this._btnOK);
     this.Controls.Add(this._propListView);
     this.Name = "ConfigureColumnsDialog";
     this.Text = "Resource List Columns";
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#21
0
文件: ItemToolTip.cs 项目: mo5h/omeo
 public ItemToolTip(JetListView ownerControl)
 {
     _ownerControl = ownerControl;
     _toolTipPool  = new PinnedStringPool(5);
 }
示例#22
0
 [SetUp] public void SetUp()
 {
     _jetListView = new JetListView();
     _column      = new JetListViewColumn();
     _jetListView.Columns.Add(_column);
 }